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:
José Varela
2021-10-18 17:42:51 +01:00
committed by GitHub
parent 18d99a875a
commit 331afb1b03

View File

@@ -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',