Trim the query before setting it (#731)

This commit is contained in:
M. Mert Yıldıran 2022-02-02 12:18:28 +03:00 committed by GitHub
parent d9ed9098eb
commit c37f6478f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,11 +59,9 @@ export const QueryForm: React.FC<QueryFormProps> = ({backgroundColor, ws, openWe
const handleCloseModal = () => setOpenModal(false);
const handleChange = async (e) => {
setQuery(e.target.value);
setQuery(e.target.value.trim());
}
const handleSubmit = (e) => {
ws.close();
if (query) {