Fix auto-fill of directus_files in relational setup (#6555)

Fixes #6487
This commit is contained in:
Rijk van Zanten
2021-06-28 19:25:27 -04:00
committed by rijkvanzanten
parent 6b49b26e33
commit 1b113ed0a7

View File

@@ -700,7 +700,7 @@ function initLocalStore(collection: string, field: string, type: typeof localTyp
if (type === 'files') {
nextTick(() => {
state.relations[1].related_collection = state.relations[1].related_collection ?? 'directus_files';
state.relations[1].related_collection = state.relations[1].related_collection || 'directus_files';
});
}