mirror of
https://github.com/directus/directus.git
synced 2026-02-19 01:34:33 -05:00
fix files interface's drawer download button (#14688)
This commit is contained in:
@@ -260,6 +260,7 @@ function editItem(item: DisplayItem) {
|
||||
if (!relationInfo.value) return;
|
||||
|
||||
const relationPkField = relationInfo.value.relatedPrimaryKeyField.field;
|
||||
const junctionField = relationInfo.value.junctionField.field;
|
||||
const junctionPkField = relationInfo.value.junctionPrimaryKeyField.field;
|
||||
|
||||
editsAtStart.value = item;
|
||||
@@ -271,7 +272,7 @@ function editItem(item: DisplayItem) {
|
||||
relatedPrimaryKey.value = null;
|
||||
} else {
|
||||
currentlyEditing.value = get(item, [junctionPkField], null);
|
||||
relatedPrimaryKey.value = get(item, [junctionPkField, relationPkField], null);
|
||||
relatedPrimaryKey.value = get(item, [junctionField, relationPkField], null);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user