Don't add _id and _rev fields to form schemas

This commit is contained in:
Andrew Kingston 2021-03-22 17:59:54 +00:00
parent b9fe600a9b
commit 28e1688138
1 changed files with 1 additions and 1 deletions

View File

@ -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" }
}