Skip to content
Snippets Groups Projects
Commit b00c2b1c authored by Albert Bruns's avatar Albert Bruns
Browse files

OZG-7474-7706 bugfix

parent 81dc7816
No related branches found
No related tags found
1 merge request!51OZG-7472-7706-bugfix
...@@ -216,7 +216,7 @@ describe('KeycloakResourceService', () => { ...@@ -216,7 +216,7 @@ describe('KeycloakResourceService', () => {
it('should clear resource in state', () => { it('should clear resource in state', () => {
service.refresh(); service.refresh();
expect(service.stateResource.value.resource).toBe(null); expect(service.stateResource.value.resource).toEqual([]);
}); });
}); });
......
...@@ -96,7 +96,7 @@ export abstract class KeycloakResourceService<T> { ...@@ -96,7 +96,7 @@ export abstract class KeycloakResourceService<T> {
refresh(): void { refresh(): void {
this.stateResource.next({ this.stateResource.next({
...createEmptyStateResource(), ...createStateResource<T[]>([]),
reload: true, reload: true,
}); });
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment