Skip to content

Commit

Permalink
[service] include event forms in detecting config changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick Saccoccia committed Nov 15, 2024
1 parent 4d37e6a commit eb31a93
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plugins/arcgis/service/src/ObservationProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,12 @@ export class ObservationProcessor {
*/
private async updateConfig(): Promise<ArcGISPluginConfig> {
const config = await this.safeGetConfig()
const configJson = JSON.stringify(config)

// Include form definitions while detecting changes in config
const eventForms = await this._eventRepo.findAll();
const fullConfig = { ...config, eventForms };

const configJson = JSON.stringify(fullConfig)
if (this._previousConfig == null || this._previousConfig != configJson) {
this._transformer = new ObservationsTransformer(config, console);
this._geometryChangeHandler = new GeometryChangedHandler(this._transformer);
Expand Down

0 comments on commit eb31a93

Please sign in to comment.