diff --git a/packages/builder/src/builderStore/dataBinding.js b/packages/builder/src/builderStore/dataBinding.js index e76342fb3b..fa6f10c98c 100644 --- a/packages/builder/src/builderStore/dataBinding.js +++ b/packages/builder/src/builderStore/dataBinding.js @@ -227,7 +227,7 @@ export const getSchemaForDatasource = (datasource, isForm = false) => { const queries = get(queriesStores).queries table = queries.find(query => query._id === datasource._id) } else { - const tables = get(tablesStore).tables + const tables = get(tablesStore).list table = tables.find(table => table._id === datasource.tableId) } if (table) {