Fixed an issue that prevented saving of content versions featuring relational data (#21509)

* fix issue where object references get overwritten

this fixes being able to save relational data in content versioning
previously we couldnt detect those change because of those references
not being updated properly

* add changeset

---------

Co-authored-by: Brainslug <br41nslug@users.noreply.github.com>
This commit is contained in:
Daniel Biegler
2024-03-01 12:01:05 +01:00
committed by GitHub
parent 7209df3501
commit ccfeacb423
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
'@directus/app': patch
---
Fixed an issue that prevented saving of content versions featuring relational data

View File

@@ -64,7 +64,7 @@ const { t } = useI18n();
const emit = defineEmits(['update:modelValue']);
const values = computed(() => {
return Object.assign({}, props.initialValues, props.modelValue);
return Object.assign({}, cloneDeep(props.initialValues), cloneDeep(props.modelValue));
});
const el = ref<Element>();