Don't default to directus_files on existing relation (#6447)

Fixes #6395
This commit is contained in:
Rijk van Zanten
2021-06-22 18:36:27 -04:00
committed by GitHub
parent 3a5fff17db
commit 4943100977

View File

@@ -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';
});
}