Skip to content

Commit fd25220

Browse files
authored
StatsHouse UI: fix paste clipboard group (#1965)
1 parent 524d619 commit fd25220

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

statshouse-ui/src/store2/helpers/addPlot.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ export function addPlot(
3636
});
3737
}
3838
});
39-
groupKey ??= plot.group ?? params.orderGroup.slice(-1)[0] ?? '0';
39+
const activeGroupKey = params.plots[params.tabNum]?.group;
40+
groupKey ??= plot.group ?? activeGroupKey ?? params.orderGroup.slice(-1)[0] ?? '0';
4041
const size = params.groups[groupKey]?.size ?? '2';
4142
const nextPlot = {
4243
...plot,

0 commit comments

Comments
 (0)