mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 10:03:33 +00:00
don't assume ref exists
This commit is contained in:
parent
90d3fb219d
commit
3976f5e5bf
1 changed files with 2 additions and 2 deletions
|
|
@ -94,8 +94,8 @@ export const PlayQueue = forwardRef(({ type }: QueueProps, ref: Ref<any>) => {
|
|||
} else {
|
||||
const player =
|
||||
playerData.current.player === 1
|
||||
? PlayersRef.current.player1
|
||||
: PlayersRef.current.player2;
|
||||
? PlayersRef.current?.player1
|
||||
: PlayersRef.current?.player2;
|
||||
const underlying = player?.getInternalPlayer();
|
||||
if (underlying) {
|
||||
underlying.currentTime = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue