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 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)}