fix refreshing on save (#18283)

This commit is contained in:
Nitwel
2023-04-21 18:41:45 +02:00
committed by GitHub
parent 75e2d0f339
commit c51a8bc4c3

View File

@@ -154,14 +154,9 @@ const props = withDefaults(
const { t } = useI18n();
const emit = defineEmits(['update:modelValue']);
const value = computed<ChangesItem>({
const value = computed<ChangesItem | any[]>({
get() {
if (props.modelValue === undefined)
return {
create: [],
update: [],
delete: [],
};
if (props.modelValue === undefined) return [];
return props.modelValue as ChangesItem;
},
set: (val) => {