From 331afb1b030337c8fe06896721e59eb419915363 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Varela?= Date: Mon, 18 Oct 2021 17:42:51 +0100 Subject: [PATCH] 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 --- .../settings/routes/data-model/field-detail/store.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/src/modules/settings/routes/data-model/field-detail/store.ts b/app/src/modules/settings/routes/data-model/field-detail/store.ts index 6aced88bc3..97acb9b9aa 100644 --- a/app/src/modules/settings/routes/data-model/field-detail/store.ts +++ b/app/src/modules/settings/routes/data-model/field-detail/store.ts @@ -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',