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 GitHub
parent 0a20b90691
commit 8ec478dfd2

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