diff --git a/stores/tables/payments/hooks.js b/stores/tables/payments/hooks.js index 5f72c9d..b51fca3 100644 --- a/stores/tables/payments/hooks.js +++ b/stores/tables/payments/hooks.js @@ -1,9 +1,10 @@ +import { computed } from 'mobx'; import { useStore } from 'stores/hooks'; export function useRowValue(index) { const { $tables } = useStore(); - const storeValue = $tables.payments.getValue(index); + const storeValue = computed(() => $tables.payments.getValue(index)).get(); function setStoreValue(value) { $tables.payments.setValue(index, value); @@ -15,7 +16,7 @@ export function useRowValue(index) { export function useRowStatus(index) { const { $tables } = useStore(); - const status = $tables.payments.getStatus(index); + const status = computed(() => $tables.payments.getStatus(index)).get(); return status; }