From c26b76368da19ab06f83198f9684c4c630cb720d Mon Sep 17 00:00:00 2001 From: Gutts-n Date: Thu, 25 Jan 2024 16:43:47 -0300 Subject: [PATCH 1/2] Fixed error to remove anchor from document --- packages/components/src/components/BucketViewer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/components/src/components/BucketViewer.tsx b/packages/components/src/components/BucketViewer.tsx index 2a0bf1e1f..254765993 100644 --- a/packages/components/src/components/BucketViewer.tsx +++ b/packages/components/src/components/BucketViewer.tsx @@ -137,7 +137,7 @@ export function BucketViewer({ a.download = data.fileName; document.body.appendChild(a); a.click(); - document.removeChild(a); + document.body.removeChild(a); }} key={i} onMouseEnter={() => setShowDownloadComponentOnLine(i)} From 2bbf3134896df3ecc66560bdf95bece143614c7b Mon Sep 17 00:00:00 2001 From: Gutts-n Date: Thu, 25 Jan 2024 16:45:39 -0300 Subject: [PATCH 2/2] Fixed error to remove anchor from document --- .changeset/four-lions-boil.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/four-lions-boil.md diff --git a/.changeset/four-lions-boil.md b/.changeset/four-lions-boil.md new file mode 100644 index 000000000..9858ed65b --- /dev/null +++ b/.changeset/four-lions-boil.md @@ -0,0 +1,5 @@ +--- +'@portaljs/components': patch +--- + +Fixed error to remove anchor from document