From c6172ccd2d018676c036d07349dc3f0a46ce2a31 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Tue, 6 Dec 2022 15:32:50 +0000 Subject: [PATCH] Fix issue with not being able to update component names --- packages/builder/src/builderStore/store/frontend.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/builder/src/builderStore/store/frontend.js b/packages/builder/src/builderStore/store/frontend.js index e831f6a343..b596a13450 100644 --- a/packages/builder/src/builderStore/store/frontend.js +++ b/packages/builder/src/builderStore/store/frontend.js @@ -1049,8 +1049,8 @@ export const getFrontendStore = () => { const updatedSetting = settings.find(setting => setting.key === name) if ( - updatedSetting.type === "dataSource" || - updatedSetting.type === "table" + updatedSetting?.type === "dataSource" || + updatedSetting?.type === "table" ) { const { schema } = getSchemaForDatasource(null, value) const columnNames = Object.keys(schema || {})