From 63a526f573e37cca19b28ab2966b7f6785c31d1c Mon Sep 17 00:00:00 2001 From: Denis Bykhov Date: Fri, 24 Mar 2023 22:52:19 +0600 Subject: [PATCH] Fix last loc (#2831) Signed-off-by: Denis Bykhov --- packages/ui/src/components/internal/Root.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui/src/components/internal/Root.svelte b/packages/ui/src/components/internal/Root.svelte index 3ea670761b..cfa1df6657 100644 --- a/packages/ui/src/components/internal/Root.svelte +++ b/packages/ui/src/components/internal/Root.svelte @@ -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') }