diff --git a/plugins/view-resources/src/components/ViewletContentView.svelte b/plugins/view-resources/src/components/ViewletContentView.svelte index 369e3ab127..d558d480a0 100644 --- a/plugins/view-resources/src/components/ViewletContentView.svelte +++ b/plugins/view-resources/src/components/ViewletContentView.svelte @@ -31,10 +31,8 @@ let configurations: Record>, Viewlet['config']> = {} function fetchConfigurations (viewlet: Viewlet): void { - configurationsLoading = true configurations = {} - - objectConfigurations.query( + configurationsLoading = objectConfigurations.query( view.class.Viewlet, { attachTo: { $in: hierarchy.getDescendants(_class) }, @@ -49,8 +47,7 @@ } function fetchPreferences (viewlet: Viewlet): void { - preferencesLoading = true - preferenceQuery.query( + preferencesLoading = preferenceQuery.query( view.class.ViewletPreference, { space: core.space.Workspace, diff --git a/plugins/view-resources/src/utils.ts b/plugins/view-resources/src/utils.ts index 01124c437a..caa089fa28 100644 --- a/plugins/view-resources/src/utils.ts +++ b/plugins/view-resources/src/utils.ts @@ -751,7 +751,7 @@ export function categorizeFields ( } export function makeViewletKey (loc?: Location): string { - loc = loc != null ? { path: loc.path } : getCurrentResolvedLocation() + loc = loc != null ? { path: loc.path, fragment: loc.fragment } : getCurrentResolvedLocation() loc.query = undefined if (loc.fragment != null && loc.fragment !== '') {