fix doSetPlayingUri arguments

This commit is contained in:
Sean Yesmunt 2020-12-21 10:31:34 -05:00
parent a0ec5097d9
commit 187cbd9695
2 changed files with 2 additions and 2 deletions

View file

@ -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)),
});

View file

@ -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