mirror of
https://github.com/directus/directus.git
synced 2026-02-15 12:14:56 -05:00
fix refreshing on save (#18283)
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user