Chore: Fix trailing spaces in prometheus min step (#85507)

Fix trailing spaces in prometheus min step
This commit is contained in:
Eunice Kim 2024-04-04 04:14:49 -07:00 committed by GitHub
parent f387cff836
commit 4e60f44d98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ export const PromQueryBuilderOptions = React.memo<PromQueryBuilderOptionsProps>(
};
const onChangeStep = (evt: React.FormEvent<HTMLInputElement>) => {
onChange({ ...query, interval: evt.currentTarget.value });
onChange({ ...query, interval: evt.currentTarget.value.trim() });
onRunQuery();
};

View File

@ -36,7 +36,7 @@ export const PromQueryBuilderOptions = React.memo<Props>(({ query, app, onChange
};
const onChangeStep = (evt: React.FormEvent<HTMLInputElement>) => {
onChange({ ...query, interval: evt.currentTarget.value });
onChange({ ...query, interval: evt.currentTarget.value.trim() });
onRunQuery();
};