diff --git a/modules/ui/rivers-editor.js b/modules/ui/rivers-editor.js index 50a01ac3..57e6bb1d 100644 --- a/modules/ui/rivers-editor.js +++ b/modules/ui/rivers-editor.js @@ -111,7 +111,7 @@ function editRiver(id) { debug .select("#controlCells") .selectAll(`polygon.${type}`) - .data(cells) + .data(cells.filter(i => pack.cells.i[i])) .join("polygon") .attr("points", d => getPackPolygon(d)) .attr("class", type);