Skip to content

Commit

Permalink
COLUMBIA: guard against undefined window property in companionWindows…
Browse files Browse the repository at this point in the history
… selector

- see also ProjectMirador#3930
  • Loading branch information
barmintor committed Jan 28, 2025
1 parent 78428f3 commit 146cd9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/state/selectors/companionWindows.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const getCompanionWindowsByWindowAndPosition = createSelector(
(Object.keys(windows) || []).reduce((obj, id) => ({
...obj,
[id]: groupBy(
windows[id].companionWindowIds.map(cwid => companionWindows[cwid]),
(windows[id].companionWindowIds || []).map(cwid => companionWindows[cwid]),
cw => cw.position,
),
}), {})
Expand Down

0 comments on commit 146cd9e

Please sign in to comment.