diff --git a/app/client/src/components/editorComponents/DynamicActionCreator.tsx b/app/client/src/components/editorComponents/DynamicActionCreator.tsx index 10c299fb84..f8b04cad65 100644 --- a/app/client/src/components/editorComponents/DynamicActionCreator.tsx +++ b/app/client/src/components/editorComponents/DynamicActionCreator.tsx @@ -386,7 +386,8 @@ class DynamicActionCreator extends React.Component { render() { const { actions, value } = this.props; - const topLevelFuncValue = this.getTopLevelFuncValue(value); + const stringValue = typeof value === "string" ? value : ""; + const topLevelFuncValue = this.getTopLevelFuncValue(stringValue); const actionOptions = PropertyPaneActionDropdownOptions.map(o => { if (o.id === "api") { return {