diff --git a/plugins/view-resources/src/viewOptions.ts b/plugins/view-resources/src/viewOptions.ts index dec09cddbb..66855b0530 100644 --- a/plugins/view-resources/src/viewOptions.ts +++ b/plugins/view-resources/src/viewOptions.ts @@ -31,8 +31,11 @@ export function isDropdownType (viewOption: ViewOptionModel): viewOption is Drop return viewOption.type === 'dropdown' } -function makeViewOptionsKey (viewlet: Viewlet, variant?: string): string { - const prefix = viewlet.viewOptions?.storageKey ?? viewlet._id + (variant !== undefined ? `-${variant}` : '') +function makeViewOptionsKey (viewlet: Viewlet, variant?: string, ignoreViewletKey = false): string { + const prefix = + viewlet.viewOptions?.storageKey !== undefined && !ignoreViewletKey + ? viewlet.viewOptions.storageKey + : viewlet._id + (variant !== undefined ? `-${variant}` : '') const loc = getCurrentResolvedLocation() loc.fragment = undefined loc.query = undefined @@ -57,8 +60,14 @@ function _getViewOptions (viewlet: Viewlet, viewOptionStore: Map