Skip to content

Commit

Permalink
fix(results-ui): display results for a specific year (#1779)
Browse files Browse the repository at this point in the history
  • Loading branch information
skamril authored Oct 23, 2023
1 parent 1dcb3f0 commit 641c421
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function createPath(params: Params): string {
const { id, mode } = output;
const isYearPeriod = year && year > 0;
const periodFolder = isYearPeriod
? `mc-ind/${Math.max(year, output.nbyears).toString().padStart(5, "0")}`
? `mc-ind/${Math.min(year, output.nbyears).toString().padStart(5, "0")}`
: "mc-all";
const isLink = "area1" in item;
const itemType = isLink ? OutputItemType.Links : OutputItemType.Areas;
Expand Down

0 comments on commit 641c421

Please sign in to comment.