Skip to content

Commit

Permalink
feat: update account actions to set accountId in URL query on initial…
Browse files Browse the repository at this point in the history
… account load
  • Loading branch information
ahmadshaheer committed Jan 14, 2025
1 parent 4194a5c commit 7bb9a57
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ function AccountActions(): JSX.Element {
useEffect(() => {
if (initialAccount !== null) {
setActiveAccount(initialAccount);
urlQuery.set('accountId', initialAccount.cloud_account_id);
navigate({ search: urlQuery.toString() });
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [initialAccount]);

const [isIntegrationModalOpen, setIsIntegrationModalOpen] = useState(false);
Expand Down

0 comments on commit 7bb9a57

Please sign in to comment.