Skip to content

Commit

Permalink
fix: 修复controller取不到值的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zuoxiaofei authored and ambar committed Nov 4, 2021
1 parent 9c0d7e4 commit 4beba5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class PlaybackRateMenuItem extends React.PureComponent<
return (
<VideoSourceContext.Consumer>
{({playbackRates, setCurrentPlaybackRate, currentPlaybackRate}) =>
playbackRates.length > 1 && (
playbackRates?.length > 1 && (
<div
className={css(styles.menuContainer)}
onMouseEnter={this.handlePlaybackRatePointerEnter}
Expand Down
2 changes: 1 addition & 1 deletion packages/griffith/src/components/items/QualityMenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class QualityMenuItem extends React.PureComponent<QualityMenuItemProps, State> {
return (
<VideoSourceContext.Consumer>
{({qualities, setCurrentQuality, currentQuality}) =>
qualities.length > 1 && (
qualities?.length > 1 && (
<div
className={css(styles.menuContainer)}
onMouseEnter={this.handleQualityPointerEnter}
Expand Down

0 comments on commit 4beba5a

Please sign in to comment.