Skip to content

Commit 191d235

Browse files
committed
fix config change issue
1 parent 0456638 commit 191d235

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

plugins/arcgis/service/src/ArcGISConfig.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ export interface FeatureServiceConfig {
88
*/
99
url: string
1010

11-
/**
12-
* Serialized ArcGISIdentityManager
13-
*/
14-
identityManager: string
11+
/**
12+
* Serialized ArcGISIdentityManager
13+
*/
14+
identityManager: string
1515

1616
/**
1717
* The feature layers.

plugins/arcgis/service/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ const arcgisPluginHooks: InitPluginHook<typeof InjectedServices> = {
172172
return {
173173
url: updateService.url,
174174
layers: updateService.layers,
175-
identityManager: existingService?.identityManager
175+
identityManager: existingService?.identityManager || ''
176176
}
177177
})
178178

plugins/arcgis/web-app/projects/main/src/lib/arc-admin/arc-admin.component.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export class ArcAdminComponent implements OnInit {
5757

5858
constructor(private arcService: ArcService, private dialog: MatDialog, private fb: FormBuilder) {
5959
this.config = defaultArcGISPluginConfig;
60-
this.editConfig = defaultArcGISPluginConfig;
60+
this.editConfig = this.copyConfig();
6161
this.editFieldMappings = false;
6262
this.attributesForm = this.fb.group({
6363
observationIdField: [''],
@@ -79,6 +79,7 @@ export class ArcAdminComponent implements OnInit {
7979
if (!this.config.baseUrl) {
8080
this.config.baseUrl = window.location.origin
8181
}
82+
this.editConfig = this.copyConfig();
8283
arcService.fetchPopulatedEvents().subscribe(x => this.handleEventResults(x));
8384
})
8485
}
@@ -192,11 +193,6 @@ export class ArcAdminComponent implements OnInit {
192193
this.saveConfig();
193194
}
194195

195-
onEditProcessing() {
196-
this.editConfig = this.copyConfig()
197-
this.dialog.open<unknown, unknown, string>(this.editProcessingTemplate)
198-
}
199-
200196
setField(field: string, value: any) {
201197
if (value != undefined && value.length == 0) {
202198
value = undefined

0 commit comments

Comments
 (0)