fix doSetPlayingUri arguments
This commit is contained in:
parent
a0ec5097d9
commit
187cbd9695
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ const select = (state, props) => ({
|
|||
const perform = dispatch => ({
|
||||
openModal: (modal, props) => dispatch(doOpenModal(modal, props)),
|
||||
prepareEdit: (publishData, uri, fileInfo) => dispatch(doPrepareEdit(publishData, uri, fileInfo, fs)),
|
||||
clearPlayingUri: () => dispatch(doSetPlayingUri(null)),
|
||||
clearPlayingUri: () => dispatch(doSetPlayingUri({ uri: null })),
|
||||
doToast: options => dispatch(doToast(options)),
|
||||
});
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ export function doDeleteFileAndMaybeGoBack(uri, deleteFromComputer, abandonClaim
|
|||
);
|
||||
|
||||
if (playingUri === uri) {
|
||||
actions.push(doSetPlayingUri(null));
|
||||
actions.push(doSetPlayingUri({ uri: null }));
|
||||
}
|
||||
// it would be nice to stay on the claim if you just want to delete it
|
||||
// we need to alter autoplay to not start downloading again after you delete it
|
||||
|
|
Loading…
Add table
Reference in a new issue