mirror of
https://github.com/directus/directus.git
synced 2026-04-03 03:00:39 -04:00
fix fields reactivity in export drawer (#14695)
This commit is contained in:
@@ -281,6 +281,15 @@ const exportSettings = reactive({
|
||||
sort: `${primaryKeyField.value?.field ?? ''}`,
|
||||
});
|
||||
|
||||
watch(
|
||||
fields,
|
||||
() => {
|
||||
if (props.layoutQuery?.fields) return;
|
||||
exportSettings.fields = fields.value?.map((field) => field.field);
|
||||
},
|
||||
{ immediate: true }
|
||||
);
|
||||
|
||||
watch(
|
||||
() => props.layoutQuery,
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user