mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Don't default to directus_files on existing relation (#6447)
Fixes #6395
This commit is contained in:
@@ -698,7 +698,7 @@ function initLocalStore(collection: string, field: string, type: typeof localTyp
|
||||
|
||||
if (type === 'files') {
|
||||
nextTick(() => {
|
||||
state.relations[1].related_collection = 'directus_files';
|
||||
state.relations[1].related_collection = state.relations[1].related_collection ?? 'directus_files';
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user