mirror of
https://github.com/directus/directus.git
synced 2026-01-28 16:48:02 -05:00
add schema to m2m and m2a (#8881)
since the API now expects a schema on body, we need to pass it in order to create respective tables
This commit is contained in:
@@ -423,6 +423,9 @@ function initLocalStore(collection: string, field: string, type: LocalType): voi
|
||||
hidden: true,
|
||||
icon: 'import_export',
|
||||
},
|
||||
schema: {
|
||||
name: junctionCollection,
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
field: 'id',
|
||||
@@ -856,6 +859,9 @@ function initLocalStore(collection: string, field: string, type: LocalType): voi
|
||||
hidden: true,
|
||||
icon: 'import_export',
|
||||
},
|
||||
schema: {
|
||||
name: junctionCollection,
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
field: 'id',
|
||||
|
||||
Reference in New Issue
Block a user