Browse Source

Don't add _id and _rev fields to form schemas

pull/1338/head
Andrew Kingston 5 years ago
parent
commit
e16a28fcd2
  1. 2
      packages/builder/src/builderStore/dataBinding.js

2
packages/builder/src/builderStore/dataBinding.js

@ -275,7 +275,7 @@ export const getSchemaForDatasource = (datasource, isForm = false) => {
}
// Add _id and _rev fields for certain types
if (schema && ["table", "link"].includes(datasource.type)) {
if (schema && !isForm && ["table", "link"].includes(datasource.type)) {
schema["_id"] = { type: "string" }
schema["_rev"] = { type: "string" }
}

Loading…
Cancel
Save