Creates empty info if there is no properties

Subjective opinion that it makes it easier when all properties are filled 100% of a time, even if it means empty list. To check if after this change it actually creates "info": {} :)
This commit is contained in:
Wojciech Radaczyński 2022-05-02 17:54:53 +02:00 committed by GitHub
parent c3a98096f2
commit 99797e6b09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -93,8 +93,7 @@ export class ExporterBim extends ExporterBase
info[property.name] = PropertyToString (property);
}
}
if (Object.keys (info).length !== 0) {
targetObject.info = info;
}
targetObject.info = info;
}
}