Merge branch 'master' into budi-7589/user-column-multi-user-filtering-support

This commit is contained in:
Adria Navarro 2023-10-09 09:37:44 +02:00 committed by GitHub
commit cd5835bfeb
3 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
{
"version": "2.11.15",
"version": "2.11.16",
"npmClient": "yarn",
"packages": [
"packages/*"

View File

@ -948,12 +948,15 @@ export const buildFormSchema = (component, asset) => {
if (component._component.endsWith("formblock")) {
let schema = {}
const datasource = getDatasourceForProvider(asset, component)
const info = getSchemaForDatasource(component, datasource)
if (!info?.schema) {
return schema
}
if (!component.fields) {
Object.values(info?.schema)
Object.values(info.schema)
.filter(
({ autocolumn, name }) =>
!autocolumn && !["_rev", "_id"].includes(name)

View File

@ -37,7 +37,7 @@
}
$: datasource = getDatasourceForProvider($currentAsset, componentInstance)
$: resourceId = datasource.resourceId || datasource.tableId
$: resourceId = datasource?.resourceId || datasource?.tableId
$: if (!isEqual(value, cachedValue)) {
cachedValue = cloneDeep(value)