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 Aug 27, 2024
1 parent d7a1841 commit 48ceefc
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 @@ -74,7 +74,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 48ceefc

Please sign in to comment.