Skip to content

Commit 6aba4f5

Browse files
committed
Add some logging
1 parent 2957dc0 commit 6aba4f5

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/middleware/hiplaApiMiddleware.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ const hiplaApiMiddleware = () => {
1111
return store.dispatch(updateResults([]));
1212
}
1313

14-
console.log(query, datasets);
14+
console.log('query:', query);
15+
console.log('datasets:', datasets);
1516
return request(searchUrl)
1617
.query({ q: query})
1718
.query({ dataset: datasets})
@@ -27,7 +28,7 @@ const hiplaApiMiddleware = () => {
2728
return store => next => action => {
2829
switch(action.type) {
2930
case 'FETCH_RESULTS':
30-
console.log('FETCH_RESULTS');
31+
console.log('action: FETCH_RESULTS');
3132

3233
store.dispatch(startSpinner);
3334
next(action);

src/reducers/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const INITIAL_STATE = {
55
};
66

77
const search = (state = INITIAL_STATE, action) => {
8-
console.log(state, action);
8+
// console.log(state, action);
99
switch (action.type) {
1010
case 'UPDATE_QUERY':
1111
return { ...state, query: action.query || '' };

0 commit comments

Comments
 (0)