Fixing linting problem from running yarn rw lint (#537)
✖ 118 problems (65 errors, 53 warnings) currently
This commit was merged in pull request #537.
This commit is contained in:
@@ -41,7 +41,7 @@ interface CsgObj {
|
||||
}
|
||||
|
||||
function CSGArray2R3fComponent(Csgs: CsgObj[]): React.ReactNode {
|
||||
return Csgs.map(({ vertices, indices, color, transforms, type }, index) => {
|
||||
return Csgs.map(({ vertices, indices, color, transforms, type }) => {
|
||||
const materialDef = materials[type]
|
||||
if (!materialDef) {
|
||||
console.error('Can not hangle object type: ' + type, {
|
||||
|
||||
@@ -413,7 +413,8 @@ const makeScriptWorker = ({ callback, convertToSolids }) => {
|
||||
runMain(params)
|
||||
},
|
||||
init: (params) => {
|
||||
let { baseURI, alias = [] } = params
|
||||
let baseURI = params.baseURI
|
||||
const alias = params.alias || []
|
||||
if (!baseURI && typeof document != 'undefined' && document.baseURI) {
|
||||
baseURI = document.baseURI
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user