Fix issue with not being able to update component names

This commit is contained in:
Andrew Kingston 2022-12-06 15:32:50 +00:00
parent a8d128ac26
commit c6172ccd2d
1 changed files with 2 additions and 2 deletions

View File

@ -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 || {})