Skip to content

Commit e98eb82

Browse files
author
Rick Saccoccia
committed
[service] fix event deletion and firstRun logic
1 parent fdaa660 commit e98eb82

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

plugins/arcgis/service/src/EventDeletionHandler.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ export class EventDeletionHandler {
3434
this._config = config;
3535
}
3636

37+
public updateConfig(newConfig: ArcGISPluginConfig): void {
38+
this._config = newConfig;
39+
}
40+
3741
/**
3842
*
3943
* @param activeEvents The current set of active events.

plugins/arcgis/service/src/ObservationProcessor.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,10 @@ export class ObservationProcessor {
178178
if (this._previousConfig == null || this._previousConfig != configJson) {
179179
this._transformer = new ObservationsTransformer(config, console);
180180
this._geometryChangeHandler = new GeometryChangedHandler(this._transformer);
181-
this._eventDeletionHandler = new EventDeletionHandler(this._console, config);
181+
this._eventDeletionHandler.updateConfig(config);
182182
this._layerProcessors = [];
183183
await this.getFeatureServiceLayers(config);
184184
this._previousConfig = configJson
185-
this._firstRun = true;
186185
}
187186
return config
188187
}
@@ -192,7 +191,6 @@ export class ObservationProcessor {
192191
*/
193192
async start() {
194193
this._isRunning = true;
195-
this._firstRun = true;
196194
this.processAndScheduleNext();
197195
}
198196

0 commit comments

Comments
 (0)