mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Make generated junction table hidden by default
This commit is contained in:
@@ -73,8 +73,10 @@ export default class CollectionsService {
|
||||
}
|
||||
});
|
||||
|
||||
const collectionInfo = omit(payload, 'fields');
|
||||
await collectionItemsService.create(collectionInfo);
|
||||
await collectionItemsService.create({
|
||||
...(payload.meta || {}),
|
||||
collection: payload.collection,
|
||||
});
|
||||
|
||||
const fieldPayloads = payload
|
||||
.fields!.filter((field) => field.meta)
|
||||
|
||||
Reference in New Issue
Block a user