mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-26 18:58:21 +02:00
Fixed mobile version build
This commit is contained in:
parent
5f46d60c5e
commit
7565f1cada
@ -32,6 +32,7 @@ const MigrationService = require('lib/services/MigrationService');
|
|||||||
const CommandService = require('lib/services/CommandService').default;
|
const CommandService = require('lib/services/CommandService').default;
|
||||||
const TemplateUtils = require('lib/TemplateUtils');
|
const TemplateUtils = require('lib/TemplateUtils');
|
||||||
const CssUtils = require('lib/CssUtils');
|
const CssUtils = require('lib/CssUtils');
|
||||||
|
const resourceEditWatcherReducer = require('lib/services/ResourceEditWatcher/reducer').default;
|
||||||
|
|
||||||
const commands = [
|
const commands = [
|
||||||
require('./gui/Header/commands/focusSearch'),
|
require('./gui/Header/commands/focusSearch'),
|
||||||
@ -280,6 +281,10 @@ class Application extends BaseApplication {
|
|||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
newState = resourceEditWatcherReducer(newState, action);
|
||||||
|
|
||||||
|
CommandService.instance().scheduleMapStateToProps(newState);
|
||||||
|
|
||||||
return super.reducer(newState, action);
|
return super.reducer(newState, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,8 +2,6 @@ const Note = require('lib/models/Note.js');
|
|||||||
const Folder = require('lib/models/Folder.js');
|
const Folder = require('lib/models/Folder.js');
|
||||||
const ArrayUtils = require('lib/ArrayUtils.js');
|
const ArrayUtils = require('lib/ArrayUtils.js');
|
||||||
const { ALL_NOTES_FILTER_ID } = require('lib/reserved-ids');
|
const { ALL_NOTES_FILTER_ID } = require('lib/reserved-ids');
|
||||||
const CommandService = require('lib/services/CommandService').default;
|
|
||||||
const resourceEditWatcherReducer = require('lib/services/ResourceEditWatcher/reducer').default;
|
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
notes: [],
|
notes: [],
|
||||||
@ -1036,10 +1034,6 @@ const reducer = (state = defaultState, action) => {
|
|||||||
newState = handleHistory(newState, action);
|
newState = handleHistory(newState, action);
|
||||||
}
|
}
|
||||||
|
|
||||||
newState = resourceEditWatcherReducer(newState, action);
|
|
||||||
|
|
||||||
CommandService.instance().scheduleMapStateToProps(newState);
|
|
||||||
|
|
||||||
return newState;
|
return newState;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user