Don't add _id and _rev fields to form schemas
This commit is contained in:
parent
b9fe600a9b
commit
28e1688138
|
@ -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…
Reference in New Issue