From a1607f02266e966df8db458cd65a74bb8db8626f Mon Sep 17 00:00:00 2001 From: Philippe Lafreniere Date: Tue, 5 Apr 2022 15:52:22 -0400 Subject: [PATCH 1/2] fix(workspace): fix wfs-actions workspace demo --- .../integration/src/lib/workspace/shared/wfs-actions.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integration/src/lib/workspace/shared/wfs-actions.service.ts b/packages/integration/src/lib/workspace/shared/wfs-actions.service.ts index f42eaff7b6..b3c3ec88fc 100644 --- a/packages/integration/src/lib/workspace/shared/wfs-actions.service.ts +++ b/packages/integration/src/lib/workspace/shared/wfs-actions.service.ts @@ -78,7 +78,7 @@ export class WfsActionsService implements OnDestroy { this.zoomAuto$.next(this.zoomAuto); this.storageChange$$ = this.storageService.storageChange$ .pipe(skipWhile((storageChange: StorageServiceEvent) => - storageChange.key !== 'zoomAuto' || storageChange.event === StorageServiceEventEnum.CLEARED)) + storageChange?.key !== 'zoomAuto' || storageChange?.event === StorageServiceEventEnum.CLEARED)) .subscribe(() => { this.zoomAuto$.next(this.zoomAuto); handleZoomAuto(workspace, this.storageService); From 19ada0d06182032fccecff9f117e640d35a68b24 Mon Sep 17 00:00:00 2001 From: Philippe Lafreniere Date: Thu, 7 Apr 2022 12:12:53 -0400 Subject: [PATCH 2/2] fix(edition): fix edition actions service --- .../src/lib/workspace/shared/edition-actions.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integration/src/lib/workspace/shared/edition-actions.service.ts b/packages/integration/src/lib/workspace/shared/edition-actions.service.ts index f1a7f9f131..b0a379655c 100644 --- a/packages/integration/src/lib/workspace/shared/edition-actions.service.ts +++ b/packages/integration/src/lib/workspace/shared/edition-actions.service.ts @@ -76,7 +76,7 @@ export class EditionActionsService implements OnDestroy { this.zoomAuto$.next(this.zoomAuto); this.storageChange$$ = this.storageService.storageChange$ .pipe(skipWhile((storageChange: StorageServiceEvent) => - storageChange.key !== 'zoomAuto' || storageChange.event === StorageServiceEventEnum.CLEARED)) + storageChange?.key !== 'zoomAuto' || storageChange?.event === StorageServiceEventEnum.CLEARED)) .subscribe(() => { this.zoomAuto$.next(this.zoomAuto); handleZoomAuto(workspace, this.storageService);