Skip to content

Open source personal finance application

fix (ui): fix local saved active tab

ilkomea863f82fae4c
diff --git a/store/ui/actions.js b/store/ui/actions.js
index d812f47b..d266d8dd 100644
--- a/store/ui/actions.js
+++ b/store/ui/actions.js
@@ -10,17 +10,11 @@ export default {
// ui
if (uiLocalStore) {
- // stat
- if (uiLocalStore.stat) {
- uiLocalStore.stat.activeTab &&
- dispatch('setActiveTab', uiLocalStore.stat.activeTab)
+ uiLocalStore.activeTabStat &&
+ dispatch('setActiveTabStat', uiLocalStore.activeTabStat)
- uiLocalStore.stat.activeTabViewName &&
- dispatch('setActiveTabViewName', uiLocalStore.stat.activeTabViewName)
-
- uiLocalStore.stat.activeTabStat &&
- dispatch('setActiveTabStat', uiLocalStore.stat.activeTabStat)
- }
+ uiLocalStore.activeTabViewName &&
+ dispatch('setActiveTabViewName', uiLocalStore.activeTabViewName)
}
},