Fix 'makeSelectIsPlaying' to look at 'playing' instead of 'primary'.
## Issue 4959: Deleting MD from downloads list causes spinning icon to run forever 5077: player doesn't close when video deleted
This commit is contained in:
parent
891207df3d
commit
dabdc980a1
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ export const selectPlayingUri = createSelector(selectState, (state) => state.pla
|
|||
export const selectPrimaryUri = createSelector(selectState, (state) => state.primaryUri);
|
||||
|
||||
export const makeSelectIsPlaying = (uri: string) =>
|
||||
createSelector(selectPrimaryUri, (primaryUri) => primaryUri === uri);
|
||||
createSelector(selectPlayingUri, (playingUri) => playingUri && playingUri.uri === uri);
|
||||
|
||||
export const makeSelectIsPlayerFloating = (location: UrlLocation) =>
|
||||
createSelector(selectPrimaryUri, selectPlayingUri, selectClaimsByUri, (primaryUri, playingUri, claimsByUri) => {
|
||||
|
|
Loading…
Reference in a new issue