Fix new-collection relational field creation

This commit is contained in:
rijkvanzanten
2021-05-21 12:49:05 -04:00
parent bc8399c362
commit da7b539adb
2 changed files with 9 additions and 1 deletions

View File

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