switched to regular api module instead of stub, which is only for dev branch
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
import nanoid from '../nanoid.min.js';
|
import nanoid from '../nanoid.min.js';
|
||||||
//import api from '../api.js';
|
import api from '../api.js';
|
||||||
import api from '../api-stub.js';
|
//import api from '../api-stub.js';
|
||||||
|
|
||||||
const load_notes = function(state, dispatch){
|
const load_notes = function(state, dispatch){
|
||||||
api.post('/load-notes', {bin_id: state.bin.id})
|
api.post('/load-notes', {bin_id: state.bin.id})
|
||||||
|
|||||||
+2
-2
@@ -1,5 +1,5 @@
|
|||||||
//import api from '../api.js';
|
import api from '../api.js';
|
||||||
import api from '../api-stub.js';
|
//import api from '../api-stub.js';
|
||||||
|
|
||||||
const edit_handler = function(note_state, dispatch){
|
const edit_handler = function(note_state, dispatch){
|
||||||
dispatch({type: 'update-note-editing', note_id: note_state.note.id, is_editing: true});
|
dispatch({type: 'update-note-editing', note_id: note_state.note.id, is_editing: true});
|
||||||
|
|||||||
Reference in New Issue
Block a user