mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
[explorev2] fix textfield and druid bug (#1732)
* Fixed bug with textfield being empty * Only return time grains for sqla table
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user