Fix location override (#3004)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-04-17 23:09:52 +06:00 committed by GitHub
parent 4d7dd1ff18
commit 2d32f677d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -481,7 +481,7 @@ export function categorizeFields (
} }
export function makeViewletKey (loc?: Location): string { export function makeViewletKey (loc?: Location): string {
loc = loc ?? getCurrentLocation() loc = loc != null ? { path: loc.path } : getCurrentLocation()
loc.fragment = undefined loc.fragment = undefined
loc.query = undefined loc.query = undefined
return 'viewlet' + locationToUrl(loc) return 'viewlet' + locationToUrl(loc)