Skip to content

Commit 41408d7

Browse files
committed
StatsHouse UI: fix pack
fix lose plot in decode url
1 parent 16917cf commit 41408d7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

statshouse-ui/src/url2/urlDecode.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ export function urlDecode(
5454
uniqueArray([...variableKeys, ...defaultParams.orderVariables]),
5555
defaultParams
5656
);
57-
if (groups.orderGroup.length === 1 && groups.groups[0]?.count !== plots.orderPlot.length) {
58-
groups.groups[0]!.count = plots.orderPlot.length;
57+
//fix lose plot
58+
if (groups.orderGroup.length === 1 && groups.groups[groups.orderGroup[0]]?.count !== plots.orderPlot.length) {
59+
groups.groups[groups.orderGroup[0]]!.count = plots.orderPlot.length;
5960
}
6061
return {
6162
...global,

0 commit comments

Comments
 (0)