7773-testToMaster_2430 #561

Merged
alexm merged 424 commits from 7773-testToMaster_2430 into master 2024-07-23 06:24:05 +00:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 2e02027a00 - Show all commits

View File

@ -58,8 +58,8 @@ onBeforeMount(async () => {
store = arrayData.store;
entity = computed(() => {
const data = Array.isArray(store.data) ? store.data[0] : store.data;
emit('onFetch', data);
return data;
if (data) emit('onFetch', data ?? {});
return data ?? {};
});
// It enables to load data only once if the module is the same as the dataKey

View File

@ -73,7 +73,7 @@ onMounted(async () => {
const data = ref(useCardDescription());
const setData = (entity) =>
(data.value = useCardDescription(entity.supplier.nickname, entity.id));
(data.value = useCardDescription(entity.supplier?.nickname, entity.id));
const currentEntry = computed(() => state.get('entry'));