mirror of
https://github.com/directus/directus.git
synced 2026-02-03 19:05:02 -05:00
fix uploading new files not working (#12821)
This commit is contained in:
@@ -211,7 +211,7 @@ const query = computed<RelationQueryMultiple>(() => ({
|
||||
page: page.value,
|
||||
}));
|
||||
|
||||
const { update, remove, select, displayItems, totalItemCount, loading, selected, isItemSelected, localDelete } =
|
||||
const { create, update, remove, select, displayItems, totalItemCount, loading, selected, isItemSelected, localDelete } =
|
||||
useRelationMultiple(value, query, relationInfo, primaryKey);
|
||||
|
||||
const pageCount = computed(() => Math.ceil(totalItemCount.value / limit.value));
|
||||
@@ -303,7 +303,7 @@ function onUpload(files: Record<string, any>[]) {
|
||||
};
|
||||
});
|
||||
|
||||
update(...filesAsJunctionRows);
|
||||
create(...filesAsJunctionRows);
|
||||
}
|
||||
|
||||
const downloadUrl = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user