Skip to content

Commit

Permalink
fixing an issue that breaks the instance due to multiple calls to use…
Browse files Browse the repository at this point in the history
…effect
  • Loading branch information
ankitakinger committed Nov 7, 2024
1 parent cb31dd4 commit 98db89c
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ function PluginActionResponse() {
function openResponseTabForPageLoadQueries() {
// actionResponse and responseDisplayFormat is present only when query has response available
if (
responseDisplayFormat &&
!!responseDisplayFormat?.title &&
actionResponse &&
actionResponse.isExecutionSuccess
actionResponse?.isExecutionSuccess
) {
dispatch(
setPluginActionEditorDebuggerState({
Expand All @@ -49,7 +47,11 @@ function PluginActionResponse() {
);
}
},
[responseDisplayFormat, actionResponse, dispatch],
[
responseDisplayFormat?.title,
actionResponse?.isExecutionSuccess,
dispatch,
],
);

useEffect(
Expand Down

0 comments on commit 98db89c

Please sign in to comment.