Google callbacks wrapped in dispatch, but shouldn't have beeen

This commit is contained in:
James Barnsley
2020-08-17 19:31:28 +12:00
parent d02d5dd491
commit 871c003a64
14 changed files with 46 additions and 31 deletions

View File

@ -56,7 +56,6 @@ const GoogleMiddleware = (function () {
} else if (last_run.status === 'finished') {
// TODO: do we want to force a refresh?
}
break;
case 'GOOGLE_LIBRARY_ALBUMS_PROCESSOR':

View File

@ -1,4 +1,3 @@
import { createRange } from '../../util/arrays';
import { generateGuid } from '../../util/helpers';

View File

@ -339,12 +339,12 @@ const MopidyMiddleware = (function () {
.then(
(response) => {
if (action.response_callback) {
store.dispatch(action.response_callback.call(this, response));
action.response_callback(response);
}
},
(error) => {
if (action.error_callback) {
store.dispatch(action.error_callback.call(this, error));
action.error_callback(error);
} else {
store.dispatch(coreActions.handleException(
'Mopidy request failed',
@ -358,8 +358,8 @@ const MopidyMiddleware = (function () {
break;
/**
* General playback
* */
* General playback
**/
case 'MOPIDY_PLAY_STATE':
store.dispatch(uiActions.setWindowTitle(null, action.play_state));