Skip to content

Commit 48ceefc

Browse files
committed
COLUMBIA: guard against undefined window property in companionWindows selector
- see also ProjectMirador#3930
1 parent d7a1841 commit 48ceefc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/state/selectors/companionWindows.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const getCompanionWindowsByWindowAndPosition = createSelector(
7474
(Object.keys(windows) || []).reduce((obj, id) => ({
7575
...obj,
7676
[id]: groupBy(
77-
windows[id].companionWindowIds.map(cwid => companionWindows[cwid]),
77+
(windows[id].companionWindowIds || []).map(cwid => companionWindows[cwid]),
7878
cw => cw.position,
7979
),
8080
}), {})

0 commit comments

Comments
 (0)