From 2d32f677d977f85d30333bbdcfec5c4f70292102 Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Mon, 17 Apr 2023 23:09:52 +0600 Subject: [PATCH] Fix location override (#3004) Signed-off-by: Denis Bykhov --- plugins/view-resources/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)