|
@@ -146,7 +146,7 @@ export class TypeClick {
|
|
|
*/
|
|
|
meshListBool = (type : any, meshId : any) => {
|
|
|
|
|
|
- if (type == null || type == undefined || typeof meshId == 'string') {
|
|
|
+ if (typeof type != 'string' || typeof meshId != 'string') {
|
|
|
return this;
|
|
|
}
|
|
|
|
|
@@ -168,21 +168,13 @@ export class TypeClick {
|
|
|
},
|
|
|
|
|
|
};
|
|
|
-
|
|
|
- console.log(
|
|
|
- "objJson meshListBool 000000", type, meshId
|
|
|
- );
|
|
|
-
|
|
|
+
|
|
|
if (json[type] == null || json[type] == undefined) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
let objJson = json[type];
|
|
|
-
|
|
|
- console.log(
|
|
|
- "objJson meshListBool 111111", objJson, type, meshId
|
|
|
- );
|
|
|
-
|
|
|
+
|
|
|
if (objJson[meshId] == null || objJson[meshId] == undefined) {
|
|
|
return false;
|
|
|
}
|