From e1a1c72cdb43afd0195bee18c0e5c5ebcb1bd672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Gonz=C3=A1lez=20Viegas?= Date: Mon, 14 Oct 2024 12:08:09 +0200 Subject: [PATCH] fix(front): correct another outliner disposal bug --- packages/front/package.json | 2 +- packages/front/src/fragments/Outliner/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/front/package.json b/packages/front/package.json index 45823b028..be442981b 100644 --- a/packages/front/package.json +++ b/packages/front/package.json @@ -1,7 +1,7 @@ { "name": "@thatopen/components-front", "description": "Collection of frontend tools to author BIM apps.", - "version": "2.3.5", + "version": "2.3.6", "author": "That Open Company", "contributors": [ "Antonio Gonzalez Viegas (https://github.com/agviegas)", diff --git a/packages/front/src/fragments/Outliner/index.ts b/packages/front/src/fragments/Outliner/index.ts index 1ea4f7e42..8b39b883c 100644 --- a/packages/front/src/fragments/Outliner/index.ts +++ b/packages/front/src/fragments/Outliner/index.ts @@ -17,7 +17,7 @@ export class Outliner extends OBC.Component implements OBC.Disposable { /** {@link OBC.Component.enabled} */ get enabled() { - if (!this.world) { + if (!this.world || this.world.isDisposing) { return false; }