Skip to content

Commit cc13539

Browse files
authored
Fix: static param text value is [object Object] (getredash#3371)
1 parent 00e991e commit cc13539

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

client/app/components/ParameterValueInput.jsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ export class ParameterValueInput extends React.Component {
145145
<Input
146146
className={'form-control ' + className}
147147
defaultValue={value || ''}
148-
onChange={onSelect}
148+
onChange={event => onSelect(event.target.value)}
149149
/>
150150
);
151151
}
@@ -170,12 +170,12 @@ export class ParameterValueInput extends React.Component {
170170
export default function init(ngModule) {
171171
ngModule.component('parameterValueInput', {
172172
template: `
173-
<parameter-value-input-impl
174-
type="$ctrl.param.type"
175-
value="$ctrl.param.normalizedValue"
176-
enum-options="$ctrl.param.enumOptions"
173+
<parameter-value-input-impl
174+
type="$ctrl.param.type"
175+
value="$ctrl.param.normalizedValue"
176+
enum-options="$ctrl.param.enumOptions"
177177
query-id="$ctrl.param.queryId"
178-
on-select="$ctrl.setValue"
178+
on-select="$ctrl.setValue"
179179
></parameter-value-input-impl>
180180
`,
181181
bindings: {

0 commit comments

Comments
 (0)