Fix URI comparison in 'doDeleteFileAndMaybeGoBack'
## 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
351890decf
commit
94fe68eb45
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ export function doDeleteFileAndMaybeGoBack(uri, deleteFromComputer, abandonClaim
|
|||
})
|
||||
);
|
||||
|
||||
if (playingUri === uri) {
|
||||
if (playingUri && playingUri.uri === uri) {
|
||||
actions.push(doSetPlayingUri({ uri: null }));
|
||||
}
|
||||
// it would be nice to stay on the claim if you just want to delete it
|
||||
|
|
Loading…
Reference in a new issue