diff --git a/app/client/src/components/editorComponents/ActionRightPane/SuggestedWidgets.tsx b/app/client/src/components/editorComponents/ActionRightPane/SuggestedWidgets.tsx index 5a732af368bf..491dd776d3ab 100644 --- a/app/client/src/components/editorComponents/ActionRightPane/SuggestedWidgets.tsx +++ b/app/client/src/components/editorComponents/ActionRightPane/SuggestedWidgets.tsx @@ -151,6 +151,14 @@ function getWidgetProps( ], }, }; + case WidgetTypes.TEXT_WIDGET: + return { + type: suggestedWidget.type, + props: { + [fieldName]: `{{JSON.stringify(${actionName}.${suggestedWidget.bindingQuery}, null, 2)}}`, + dynamicBindingPathList: [{ key: widgetInfo.propertyName }], + }, + }; default: return { type: suggestedWidget.type, diff --git a/app/client/src/sagas/DebuggerSagas.ts b/app/client/src/sagas/DebuggerSagas.ts index 67a2c5a87be7..a483af204ab7 100644 --- a/app/client/src/sagas/DebuggerSagas.ts +++ b/app/client/src/sagas/DebuggerSagas.ts @@ -378,6 +378,9 @@ function* deleteDebuggerErrorLogSaga( action: ReduxAction<{ id: string; analytics: Log["analytics"] }>, ) { const errors: Record = yield select(getDebuggerErrors); + // If no error exists with this id + if (!(action.payload.id in errors)) return; + const error = errors[action.payload.id]; if (!error.source) return;