Fix location override (#3004)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-04-18 00:09:52 +07:00
committed by GitHub
parent 4d7dd1ff18
commit 2d32f677d9
+1 -1
View File
@@ -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)