Tempo: Fix the inconsistency between the query limit values in the options component (#56566)

This commit is contained in:
Hamas Shafiq 2022-10-11 16:08:53 +01:00 committed by GitHub
parent 94fe605175
commit 9db61f54ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,7 +26,7 @@ export const TempoQueryBuilderOptions = React.memo<Props>(({ onChange, query })
placeholder="auto"
type="number"
min={1}
defaultValue={DEFAULT_LIMIT}
defaultValue={query.limit || DEFAULT_LIMIT}
onCommitChange={onLimitChange}
value={query.limit}
/>