Skip to content

Commit

Permalink
Fixed bug with textfield being empty
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Dec 1, 2016
1 parent 7f4f250 commit 52bd90e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ export const exploreReducer = function (state, action) {
if (action.key === 'viz_type') {
newFormData.previous_viz_type = state.viz.form_data.viz_type;
}
newFormData[action.key] = action.value ? action.value : (!state.viz.form_data[action.key]);
newFormData[action.key] = (action.value !== undefined)
? action.value : (!state.viz.form_data[action.key]);
return Object.assign(
{},
state,
Expand Down

0 comments on commit 52bd90e

Please sign in to comment.