mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-02 00:57:45 +00:00
Trim the query
before setting it (#731)
This commit is contained in:
parent
d9ed9098eb
commit
c37f6478f3
@ -59,11 +59,9 @@ export const QueryForm: React.FC<QueryFormProps> = ({backgroundColor, ws, openWe
|
|||||||
const handleCloseModal = () => setOpenModal(false);
|
const handleCloseModal = () => setOpenModal(false);
|
||||||
|
|
||||||
const handleChange = async (e) => {
|
const handleChange = async (e) => {
|
||||||
setQuery(e.target.value);
|
setQuery(e.target.value.trim());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const handleSubmit = (e) => {
|
const handleSubmit = (e) => {
|
||||||
ws.close();
|
ws.close();
|
||||||
if (query) {
|
if (query) {
|
||||||
|
Loading…
Reference in New Issue
Block a user