Skip to content

Commit 8950b3e

Browse files
committed
fix: review fix
1 parent 3411cad commit 8950b3e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/containers/Tenant/Query/ExecuteResult/PlanToSvgButton.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ export function PlanToSvgButton({plan, database}: PlanToSvgButtonProps) {
2929
getPlanToSvg({plan, database})
3030
.unwrap()
3131
.then((result) => {
32-
if (blobUrl) {
33-
URL.revokeObjectURL(blobUrl);
34-
}
35-
3632
const blob = new Blob([result], {type: 'image/svg+xml'});
3733
const url = URL.createObjectURL(blob);
3834
setBlobUrl(url);
@@ -42,7 +38,7 @@ export function PlanToSvgButton({plan, database}: PlanToSvgButtonProps) {
4238
.catch((err) => {
4339
setError(JSON.stringify(err));
4440
});
45-
}, [blobUrl, database, getPlanToSvg, plan]);
41+
}, [database, getPlanToSvg, plan]);
4642

4743
React.useEffect(() => {
4844
return () => {

0 commit comments

Comments
 (0)