Skip to content

Commit

Permalink
fix: codemirror suggetion
Browse files Browse the repository at this point in the history
  • Loading branch information
albinAppsmith committed Sep 19, 2024
1 parent 1ad67e1 commit 9d451ab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/client/src/pages/Editor/QueryEditor/QueryResponseTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,12 @@ const QueryResponseTab = (props: Props) => {
const { pluginSpecifiedTemplates } =
currentActionConfig.actionConfiguration;

if (error && pluginSpecifiedTemplates[0].value === true) {
if (
error &&
pluginSpecifiedTemplates &&
pluginSpecifiedTemplates.length > 0 &&
pluginSpecifiedTemplates[0].value === true
) {
showPreparedStatementWarning = true;
}
}
Expand Down

0 comments on commit 9d451ab

Please sign in to comment.