diff --git a/plugins/view-resources/src/utils.ts b/plugins/view-resources/src/utils.ts index 5a183fb68d..975d3d1bed 100644 --- a/plugins/view-resources/src/utils.ts +++ b/plugins/view-resources/src/utils.ts @@ -481,7 +481,7 @@ export function categorizeFields ( } export function makeViewletKey (loc?: Location): string { - loc = loc ?? getCurrentLocation() + loc = loc != null ? { path: loc.path } : getCurrentLocation() loc.fragment = undefined loc.query = undefined return 'viewlet' + locationToUrl(loc)