Skip to content

Commit

Permalink
fix(admin-ui): Fix stale values in zone selector component
Browse files Browse the repository at this point in the history
Fixes #2867
  • Loading branch information
michaelbromley committed Jun 3, 2024
1 parent f92f9c9 commit 232ecbb
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ export class ZoneSelectorComponent implements ControlValueAccessor {
disabled = false;
value: string | Zone;
zones$ = this.dataService
.query(GetZoneSelectorListDocument, { options: { take: 999 } }, 'cache-first')
.query(GetZoneSelectorListDocument, { options: { take: 999 } })
.mapSingle(result => result.zones.items);

constructor(private dataService: DataService, private changeDetectorRef: ChangeDetectorRef) {}
constructor(
private dataService: DataService,
private changeDetectorRef: ChangeDetectorRef,
) {}

onChange(selected: Zone) {
if (this.readonly) {
Expand Down

0 comments on commit 232ecbb

Please sign in to comment.