Skip to content

Commit

Permalink
fix: made plugin config obj optional
Browse files Browse the repository at this point in the history
  • Loading branch information
albinAppsmith committed Sep 24, 2024
1 parent 37776ef commit 420801e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/client/src/pages/Editor/QueryEditor/QueryResponseTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,10 +204,10 @@ const QueryResponseTab = (props: Props) => {

const { actionConfiguration } = currentActionConfig;
const hasPluginSpecifiedTemplates =
actionConfiguration.pluginSpecifiedTemplates?.[0]?.value === true;
actionConfiguration?.pluginSpecifiedTemplates?.[0]?.value === true;
// oracle have different key for prepared statements
const hasPreparedStatement =
actionConfiguration.formData?.preparedStatement?.data === true;
actionConfiguration?.formData?.preparedStatement?.data === true;

if (error && (hasPluginSpecifiedTemplates || hasPreparedStatement)) {
showPreparedStatementWarning = true;
Expand Down

0 comments on commit 420801e

Please sign in to comment.