Fix last loc (#2831)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov 2023-03-24 22:52:19 +06:00 committed by GitHub
parent df7bb05d0d
commit 63a526f573
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,7 +35,7 @@
}
if (application === undefined) {
let last = localStorage.getItem(`platform_last_loc_${loc.path[1]}`)
let last = loc.path[1] !== undefined ? localStorage.getItem(`platform_last_loc_${loc.path[1]}`) : null
if (last === null) {
last = localStorage.getItem('platform_last_loc')
}