Skip to content

Commit

Permalink
StatsHouse UI: fix pack
Browse files Browse the repository at this point in the history
fix lose plot in decode url
  • Loading branch information
vauweb committed Nov 7, 2024
1 parent 16917cf commit 41408d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions statshouse-ui/src/url2/urlDecode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ export function urlDecode(
uniqueArray([...variableKeys, ...defaultParams.orderVariables]),
defaultParams
);
if (groups.orderGroup.length === 1 && groups.groups[0]?.count !== plots.orderPlot.length) {
groups.groups[0]!.count = plots.orderPlot.length;
//fix lose plot
if (groups.orderGroup.length === 1 && groups.groups[groups.orderGroup[0]]?.count !== plots.orderPlot.length) {
groups.groups[groups.orderGroup[0]]!.count = plots.orderPlot.length;
}
return {
...global,
Expand Down

0 comments on commit 41408d7

Please sign in to comment.