Skip to content

Commit

Permalink
[nested-grid] Fix crash when exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
kimo-k committed Jan 7, 2025
1 parent cb3ec51 commit c692f4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

> Committed but unreleased changes are put here, at the top. Older releases are detailed chronologically below.
## 2.23.1 (2025-01-07)

#### Fixed

- `nested-grid`: Fixed crash when exporting


## 2.23.0 (2025-01-07)

#### Changed
Expand Down
4 changes: 2 additions & 2 deletions src/re_com/nested_grid.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -804,8 +804,8 @@
export-corner-headers #(mapv (fn [x]
(mapv (fn [y]
(on-export-corner-header {:row-index y :column-index x}))
(range @row-depth)))
(range @column-depth))
(range row-depth)))
(range column-depth))
export-column-headers #(let [export-path (fn [path]
(on-export-column-header {:path path :row-path path}))]
(transpose (mapv (fn [path] (mapv export-path (ancestry path)))
Expand Down

0 comments on commit c692f4c

Please sign in to comment.