commit | 0b949f2ea85068353ec829532d220450a0a66789 | [log] [tgz] |
---|---|---|
author | dtheinert <dietmar.theinert@pta.de> | Thu Sep 03 14:38:34 2020 +0200 |
committer | dtheinert <dietmar.theinert@pta.de> | Thu Sep 03 14:38:34 2020 +0200 |
tree | 6684779b5fafe0281e5bc8247b3b76ad20fd0962 | |
parent | 72e3350e48a489929854b6fe49b5c0927861bc55 [diff] |
[SI-2524] - correct map handling
diff --git a/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.spec.ts b/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.spec.ts index 9e94396..38aeb92 100644 --- a/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.spec.ts +++ b/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.spec.ts
@@ -358,7 +358,7 @@ service.latLonMapping(event); - expect(dispatchSpy).not.toHaveBeenCalled(); + expect(dispatchSpy).toHaveBeenCalled(); }); it('should dispatch loadAddressPostalcodes Action via loadAddressPostalcodes()', () => {
diff --git a/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.ts b/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.ts index 0782d22..6166e86 100644 --- a/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.ts +++ b/projects/grid-failure-information-app/src/app/pages/grid-failure/grid-failure-details/grid-failure-details.sandbox.ts
@@ -518,7 +518,7 @@ const isSelectedMapLocationDifferentToOldMapLocation = (!this.currentFormState.value.latitude || data.latitude !== this.currentFormState.value.latitude || !this.currentFormState.value.longitude || data.longitude !== this.currentFormState.value.longitude); - if (!!data && this.currentFormState.value.voltageLevel === Globals.FAILURE_LOCATION_MS && isSelectedMapLocationDifferentToOldMapLocation) { + if (!!data && isSelectedMapLocationDifferentToOldMapLocation) { this.appState$.dispatch( new SetValueAction(this.currentFormState.id, { ...this.currentFormState.value,