Skip to content

Commit

Permalink
fix config change issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanslatten committed Dec 18, 2024
1 parent 0456638 commit 191d235
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
8 changes: 4 additions & 4 deletions plugins/arcgis/service/src/ArcGISConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ export interface FeatureServiceConfig {
*/
url: string

/**
* Serialized ArcGISIdentityManager
*/
identityManager: string
/**
* Serialized ArcGISIdentityManager
*/
identityManager: string

/**
* The feature layers.
Expand Down
2 changes: 1 addition & 1 deletion plugins/arcgis/service/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ const arcgisPluginHooks: InitPluginHook<typeof InjectedServices> = {
return {
url: updateService.url,
layers: updateService.layers,
identityManager: existingService?.identityManager
identityManager: existingService?.identityManager || ''
}
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class ArcAdminComponent implements OnInit {

constructor(private arcService: ArcService, private dialog: MatDialog, private fb: FormBuilder) {
this.config = defaultArcGISPluginConfig;
this.editConfig = defaultArcGISPluginConfig;
this.editConfig = this.copyConfig();
this.editFieldMappings = false;
this.attributesForm = this.fb.group({
observationIdField: [''],
Expand All @@ -79,6 +79,7 @@ export class ArcAdminComponent implements OnInit {
if (!this.config.baseUrl) {
this.config.baseUrl = window.location.origin
}
this.editConfig = this.copyConfig();
arcService.fetchPopulatedEvents().subscribe(x => this.handleEventResults(x));
})
}
Expand Down Expand Up @@ -192,11 +193,6 @@ export class ArcAdminComponent implements OnInit {
this.saveConfig();
}

onEditProcessing() {
this.editConfig = this.copyConfig()
this.dialog.open<unknown, unknown, string>(this.editProcessingTemplate)
}

setField(field: string, value: any) {
if (value != undefined && value.length == 0) {
value = undefined
Expand Down

0 comments on commit 191d235

Please sign in to comment.