Skip to content

Commit

Permalink
#3355 Widget params: Date/Date range value empty in static param input (
Browse files Browse the repository at this point in the history
  • Loading branch information
kravets-levko authored and arikfr committed Jan 28, 2019
1 parent c085964 commit 6930106
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/app/components/ParameterMappingInput.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint react/no-multi-comp: 0 */

import { extend, map, includes, findIndex, find, fromPairs, isNull, isUndefined } from 'lodash';
import { extend, map, includes, findIndex, find, fromPairs } from 'lodash';
import React from 'react';
import PropTypes from 'prop-types';
import Select from 'antd/lib/select';
Expand Down Expand Up @@ -163,7 +163,7 @@ export class ParameterMappingInput extends React.Component {
<ParameterValueInput
className="w-100"
type={mapping.param.type}
value={isUndefined(mapping.value) || isNull(mapping.value) ? mapping.param.normalizedValue : mapping.value}
value={mapping.param.normalizedValue}
enumOptions={mapping.param.enumOptions}
queryId={mapping.param.queryId}
onSelect={value => this.updateParamMapping(mapping, { value })}
Expand Down

0 comments on commit 6930106

Please sign in to comment.