Skip to content
Snippets Groups Projects
Commit 6aba4f55 authored by Esko Ikkala's avatar Esko Ikkala
Browse files

Add some logging

parent 2957dc00
No related branches found
No related tags found
No related merge requests found
......@@ -11,7 +11,8 @@ const hiplaApiMiddleware = () => {
return store.dispatch(updateResults([]));
}
console.log(query, datasets);
console.log('query:', query);
console.log('datasets:', datasets);
return request(searchUrl)
.query({ q: query})
.query({ dataset: datasets})
......@@ -27,7 +28,7 @@ const hiplaApiMiddleware = () => {
return store => next => action => {
switch(action.type) {
case 'FETCH_RESULTS':
console.log('FETCH_RESULTS');
console.log('action: FETCH_RESULTS');
store.dispatch(startSpinner);
next(action);
......
......@@ -5,7 +5,7 @@ export const INITIAL_STATE = {
};
const search = (state = INITIAL_STATE, action) => {
console.log(state, action);
// console.log(state, action);
switch (action.type) {
case 'UPDATE_QUERY':
return { ...state, query: action.query || '' };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment