Skip to content

Commit

Permalink
fix(#2398): fix unnecessary node remove in metadata actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MSzalowski committed Dec 3, 2024
1 parent 3b2b867 commit b931f80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ changes.

- Fix fetching voting power of newly registerd DRep [Issue 2407](https://github.com/IntersectMBO/govtool/issues/2407)
- Fix inconsistent voting status [Issue 1713](https://github.com/IntersectMBO/govtool/issues/1713)
- Fix removing a child (link) when is not registed in DOM [Issue 2398](https://github.com/IntersectMBO/govtool/issues/2398)

### Changed

Expand Down
3 changes: 0 additions & 3 deletions govtool/frontend/src/utils/jsonUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export const downloadJson = (json: NodeObject, fileName?: string) => {
} else {
link.click();
}

document.body.removeChild(link);
URL.revokeObjectURL(url);
};

Expand All @@ -52,6 +50,5 @@ export const downloadTextFile = (text: string, fileName?: string) => {
link.click();
}

document.body.removeChild(link);
URL.revokeObjectURL(url);
};

0 comments on commit b931f80

Please sign in to comment.