Skip to content

Commit

Permalink
fix(front): correct streamer error when deleted non-streamed model
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Jul 31, 2024
1 parent 4aba42e commit 863d24b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/front/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@thatopen/components-front",
"description": "Collection of frontend tools to author BIM apps.",
"version": "2.1.12",
"version": "2.1.13",
"author": "That Open Company",
"contributors": [
"Antonio Gonzalez Viegas (https://github.com/agviegas)",
Expand Down
4 changes: 4 additions & 0 deletions packages/front/src/fragments/IfcStreamer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,10 @@ export class IfcStreamer extends OBC.Component implements OBC.Disposable {

const { groupID, fragmentIDs } = data;

if (!this.models[groupID]) {
return;
}

delete this.models[groupID];
delete this._geometryInstances[groupID];
delete this._loadedFragments[groupID];
Expand Down

0 comments on commit 863d24b

Please sign in to comment.