trimeed the searched

parent aeb0959b
...@@ -32,7 +32,7 @@ function LeftSidebar() { ...@@ -32,7 +32,7 @@ function LeftSidebar() {
}, [inputValue]); }, [inputValue]);
const handleChange = (event) => { const handleChange = (event) => {
setInputValue(event.target.value); setInputValue(event.target.value.trim());
}; };
useEffect(() => { useEffect(() => {
......
...@@ -67,7 +67,7 @@ function Dashboard() { ...@@ -67,7 +67,7 @@ function Dashboard() {
}, [inputValue]); }, [inputValue]);
const handleChange = (event) => { const handleChange = (event) => {
setInputValue(event.target.value); setInputValue(event.target.value.trim());
}; };
const headers = [ const headers = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment