From c312697dd2a837cff0235c7e97afb1f101963073 Mon Sep 17 00:00:00 2001 From: Hetu Nandu Date: Tue, 18 Feb 2020 16:33:25 +0530 Subject: [PATCH] handle old actions --- .../src/components/editorComponents/DynamicActionCreator.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {