Skip to content

Commit

Permalink
bug fix -- missing "set visibility window" menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
jrobinso committed Nov 19, 2023
1 parent f4f7f64 commit 8a7bd46
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/ui/menuUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ function didMultiSelect(trackView) {
return selected && selected.length > 1 && new Set(selected).has(trackView)
}

function isVisibilityWindowType(track) {
const hasVizWindow = track.config && track.config.visibilityWindow !== undefined
return hasVizWindow || vizWindowTypes.has(track.type)
function isVisibilityWindowType(trackView) {
const track = trackView.track
const hasVizWindow = track && track.config && track.config.visibilityWindow !== undefined
return hasVizWindow || (track && vizWindowTypes.has(track.type))
}

function overlayTrackAlphaAdjustmentMenuItem() {
Expand Down

0 comments on commit 8a7bd46

Please sign in to comment.