From ee17abce065db201713ffe1a7a38dfeaec647d6f Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 15 Mar 2021 17:24:47 -0400 Subject: [PATCH] switched to regular api module instead of stub, which is only for dev branch --- handlers/App.js | 4 ++-- handlers/Note.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/handlers/App.js b/handlers/App.js index 7c48668..6633404 100644 --- a/handlers/App.js +++ b/handlers/App.js @@ -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}) diff --git a/handlers/Note.js b/handlers/Note.js index 911be87..a48f899 100644 --- a/handlers/Note.js +++ b/handlers/Note.js @@ -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});