Skip to content

Commit

Permalink
Merge pull request #3519 from bettyblocks/fix/redirect-when-no-result…
Browse files Browse the repository at this point in the history
…-auth-profile-techsup-9627

fix: make "Redirect when no result" option work with auth profile TECHSUP-9627
  • Loading branch information
ingmar-stipriaan authored Nov 7, 2024
2 parents 1cc31e9 + adeba2b commit 3b59c78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/dataContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,9 @@
B.defineFunction('Refetch', () => {
refetch();
});
if (!data && redirectWithoutResult && !loading) {
redirect();
}
return DataContainer(!!data);
}}
</GetMe>
Expand Down

0 comments on commit 3b59c78

Please sign in to comment.