Skip to content

Commit 6b0c314

Browse files
xflordxkureck
authored andcommitted
fix(admin): assigned users advanced filter disappearing after refresh
* keep selected values of filter when refreshing the table
1 parent e75d9bd commit 6b0c314

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

apps/admin-gui/src/app/facilities/pages/facility-detail-page/facility-allowed-users/facility-allowed-users.component.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,10 @@ export class FacilityAllowedUsersComponent implements OnInit {
106106
(resources) => {
107107
this.resources = [this.emptyResource].concat(resources);
108108
this.filteredResources = this.resources;
109-
this.selectedResource = this.emptyResource;
110109

111110
this.facilityService.getAllowedVos(this.facility.id).subscribe(
112111
(vos) => {
113112
this.vos = [this.emptyVo].concat(vos);
114-
this.selectedVo = this.emptyVo;
115-
116113
this.services = [];
117114
this.getAssignedServices(this.resources, this.resources.length - 1);
118115
},
@@ -128,7 +125,7 @@ export class FacilityAllowedUsersComponent implements OnInit {
128125
if (idx === 0) {
129126
this.services = [this.emptyService].concat(this.services);
130127
this.filteredServices = this.services;
131-
this.selectedService = this.emptyService;
128+
132129
this.changeFilter();
133130
this.loading = false;
134131
return;

0 commit comments

Comments
 (0)