Skip to content

Commit

Permalink
feat(AU-2006): Show loading state when translating unit block (opened…
Browse files Browse the repository at this point in the history
  • Loading branch information
Rodra authored May 17, 2024
1 parent e656f54 commit df36123
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,11 @@ const useIFrameBehavior = ({
};
};

React.useEffect(() => {
setIframeHeight(0);
setHasLoaded(false);
}, [iframeUrl]);

return {
iframeHeight,
handleIFrameLoad,
Expand Down

0 comments on commit df36123

Please sign in to comment.