fixed syncing a note's temp_text with its actual text, in different sitations; updating text updates 'modified' time on the mock server

This commit is contained in:
brian
2021-03-15 18:04:18 -04:00
parent ee17abce06
commit dffdcfcd60
5 changed files with 10 additions and 9 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import nanoid from '../nanoid.min.js';
import api from '../api.js';
//import api from '../api-stub.js';
//import api from '../api.js';
import api from '../api-stub.js';
const load_notes = function(state, dispatch){
api.post('/load-notes', {bin_id: state.bin.id})
+2 -2
View File
@@ -1,5 +1,5 @@
import api from '../api.js';
//import api from '../api-stub.js';
//import api from '../api.js';
import api from '../api-stub.js';
const edit_handler = function(note_state, dispatch){
dispatch({type: 'update-note-editing', note_id: note_state.note.id, is_editing: true});