From 46c9fd6c3241f9fcbb3fcb27e49c349fd83eb7d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philippe=20Lafreni=C3=A8re?= <53181414+PhilippeLafreniere18@users.noreply.github.com> Date: Thu, 7 Apr 2022 12:14:47 -0400 Subject: [PATCH] fix(workspace): fix wfs-actions workspace demo (#1034) * fix(workspace): fix wfs-actions workspace demo * fix(edition): fix edition actions service --- .../src/lib/workspace/shared/edition-actions.service.ts | 2 +- .../integration/src/lib/workspace/shared/wfs-actions.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); 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);