Open source personal finance application
fix: update lifecycle hooks for update TrnForm
Ilya Komichev2b1780d9a374
diff --git a/app/components/categories/page/id/Index.vue b/app/components/categories/page/id/Index.vueindex 93e1b56a..b58cccb7 100644--- a/app/components/categories/page/id/Index.vue+++ b/app/components/categories/page/id/Index.vue@@ -62,7 +62,7 @@ const statDate = useStatDate({})provide('statDate', statDate)-onMounted(() => {+onActivated(() => {statConfig.updateConfig('catsList', { isGrouped: false })statConfig.updateConfig('catsRound', { isGrouped: false })diff --git a/app/components/wallets/page/id/Index.vue b/app/components/wallets/page/id/Index.vueindex c5f756e9..dfeb5c62 100644--- a/app/components/wallets/page/id/Index.vue+++ b/app/components/wallets/page/id/Index.vue@@ -56,9 +56,7 @@ watch(filter.categoriesIds, () => {statConfig.config.value.isShowEmptyCategories = filter.categoriesIds.value.length > 0})-onMounted(() => {- trnsFormStore.values.walletId = walletId.value-})+onActivated(() => trnsFormStore.values.walletId = walletId.value)const total = computed(() => walletsStore.itemsComputed[walletId.value]?.amount ?? 0)