mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix new-collection relational field creation
This commit is contained in:
@@ -225,7 +225,10 @@ export default defineComponent({
|
||||
const relations = getSystemRelations();
|
||||
|
||||
if (relations.length > 0) {
|
||||
await api.post('/relations', relations);
|
||||
for (const relation of relations) {
|
||||
await api.post('/relations', relation);
|
||||
}
|
||||
|
||||
await relationsStore.hydrate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user