fix: refs #8198 handle potential null values in itemBalances computation #1453

Merged
jorgep merged 1 commits from 8198-hotfix-preventNull into master 2025-02-20 09:22:59 +00:00
1 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ const user = state.getUser();
const today = Date.vnNew();
today.setHours(0, 0, 0, 0);
const warehousesOptions = ref([]);
const itemBalances = computed(() => arrayDataItemBalances.store.data);
const itemBalances = computed(() => arrayDataItemBalances.store.data || []);
const where = computed(() => arrayDataItemBalances.store.filter.where || {});
const showWhatsBeforeInventory = ref(false);
const inventoriedDate = ref(null);