Skip to content

Commit eb31a93

Browse files
author
Rick Saccoccia
committed
[service] include event forms in detecting config changes
1 parent 4d37e6a commit eb31a93

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

plugins/arcgis/service/src/ObservationProcessor.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,12 @@ export class ObservationProcessor {
163163
*/
164164
private async updateConfig(): Promise<ArcGISPluginConfig> {
165165
const config = await this.safeGetConfig()
166-
const configJson = JSON.stringify(config)
166+
167+
// Include form definitions while detecting changes in config
168+
const eventForms = await this._eventRepo.findAll();
169+
const fullConfig = { ...config, eventForms };
170+
171+
const configJson = JSON.stringify(fullConfig)
167172
if (this._previousConfig == null || this._previousConfig != configJson) {
168173
this._transformer = new ObservationsTransformer(config, console);
169174
this._geometryChangeHandler = new GeometryChangedHandler(this._transformer);

0 commit comments

Comments
 (0)