Skip to content

Commit f83714b

Browse files
committed
fix: Clear SVG and parent node on scatterplot resize
1 parent 928c593 commit f83714b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/vps-web/src/app/custom-nodes-v2/plot-visual.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ export class PlotVisual extends NodeVisual<NodeInfo> {
211211
this.isResizing = true;
212212
try {
213213
console.log('SCATTERPLOT resize');
214+
215+
parentNode.innerHTML = '';
216+
this.svg = undefined;
214217
renderScatterPlot();
215218
} finally {
216219
this.isResizing = false;

0 commit comments

Comments
 (0)