mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
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:
5
.changeset/quick-cameras-kneel.md
Normal file
5
.changeset/quick-cameras-kneel.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'@directus/app': patch
|
||||
---
|
||||
|
||||
Fixed an issue that prevented saving of content versions featuring relational data
|
||||
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user