Skip to content

Commit

Permalink
set defaultValue and not value top be able to change the limit and al…
Browse files Browse the repository at this point in the history
…isBy field
  • Loading branch information
MGJamJam committed Jun 7, 2024
1 parent cdbfa5b commit 45e9677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bitmovin-analytics-datasource/src/components/QueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ export function QueryEditor(props: Props) {
/>
</InlineField>
<InlineField label="Limit" labelWidth={20}>
<Input value={query.limit} type="number" onBlur={handleLimitBlur} width={30} placeholder="No limit" />
<Input defaultValue={query.limit} type="number" onBlur={handleLimitBlur} width={30} placeholder="No limit" />
</InlineField>
<InlineField label="Format as time series" labelWidth={20}>
<InlineSwitch value={isTimeSeries} onChange={handleFormatAsTimeSeriesChange}></InlineSwitch>
</InlineField>
{isTimeSeries && renderTimeSeriesOption()}
<InlineField label="Alias By" labelWidth={20}>
<Input value={query.aliasBy} placeholder="Naming pattern" onBlur={handleAliasByBlur} />
<Input defaultValue={query.aliasBy} placeholder="Naming pattern" onBlur={handleAliasByBlur} />
</InlineField>
</FieldSet>
</div>
Expand Down

0 comments on commit 45e9677

Please sign in to comment.