Skip to content

Commit 4837150

Browse files
author
Adam Tomaszczyk
committed
P0 - GA index in the URL is not considered as a parameter but an html anchor
1 parent e39ac50 commit 4837150

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

govtool/frontend/src/components/organisms/DashboardGovernanceActionDetails.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export const DashboardGovernanceActionDetails = () => {
6060
);
6161

6262
useEffect(() => {
63-
if (data?.proposal && typeof isMetadataValid !== "boolean") {
63+
const extendedProposalIndex = extendedProposal ? extendedProposal.index : -1;
64+
if (data?.proposal && data?.proposal.index !== extendedProposalIndex) {
6465
setExtendedProposal(data.proposal);
6566
}
6667
}, [data?.proposal, isMetadataValid]);

0 commit comments

Comments
 (0)