Skip to content

Commit

Permalink
Merge pull request #2459 from IntersectMBO/fix/2398-sentry-report-on-…
Browse files Browse the repository at this point in the history
…metadata-related-user-actions

fix(#2398): fix unnecessary node remove in metadata actions
  • Loading branch information
MSzalowski authored Dec 4, 2024
2 parents 66762f1 + 5254aad commit e78f6e6
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 e78f6e6

Please sign in to comment.