6336-migrationClaim-v5 #531

Merged
alexm merged 11 commits from 6336-migrationClaim-v5 into dev 2024-07-09 09:42:43 +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 ?? {});
alexm marked this conversation as resolved Outdated

no veo una manera de evitar repetir data ?? {} sino es con una variable

no veo una manera de evitar repetir data ?? {} sino es con una variable
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'));