Skip to content

Commit 53bb171

Browse files
committed
fix: issue with map-settings takeUntil
1 parent bbe8a82 commit 53bb171

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libs/safe/src/lib/components/widgets/map-settings/map-settings.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -138,37 +138,37 @@ export class SafeMapSettingsComponent
138138
});
139139
this.tileForm
140140
.get('initialState')
141-
?.valueChanges.pipe(takeUntil(this.destroy$), debounceTime(1000))
141+
?.valueChanges.pipe(debounceTime(1000), takeUntil(this.destroy$))
142142
.subscribe((value) =>
143143
this.updateMapSettings({
144144
initialState: value,
145145
} as MapConstructorSettings)
146146
);
147147
this.tileForm
148148
.get('basemap')
149-
?.valueChanges.pipe(takeUntil(this.destroy$), debounceTime(1000))
149+
?.valueChanges.pipe(debounceTime(1000), takeUntil(this.destroy$))
150150
.subscribe((value) =>
151151
this.updateMapSettings({ basemap: value } as MapConstructorSettings)
152152
);
153153
this.tileForm
154154
.get('controls')
155-
?.valueChanges.pipe(takeUntil(this.destroy$), debounceTime(1000))
155+
?.valueChanges.pipe(debounceTime(1000), takeUntil(this.destroy$))
156156
.subscribe((value) => {
157157
this.updateMapSettings({
158158
controls: value,
159159
} as MapConstructorSettings);
160160
});
161161
this.tileForm
162162
.get('arcGisWebMap')
163-
?.valueChanges.pipe(takeUntil(this.destroy$), debounceTime(1000))
163+
?.valueChanges.pipe(debounceTime(1000), takeUntil(this.destroy$))
164164
.subscribe((value) =>
165165
this.updateMapSettings({
166166
arcGisWebMap: value,
167167
} as MapConstructorSettings)
168168
);
169169
this.tileForm
170170
.get('layers')
171-
?.valueChanges.pipe(takeUntil(this.destroy$), debounceTime(1000))
171+
?.valueChanges.pipe(debounceTime(1000), takeUntil(this.destroy$))
172172
.subscribe((value) =>
173173
this.updateMapSettings({
174174
layers: value,

0 commit comments

Comments
 (0)