fix(extraSidebarComponent): add missing useRef import to fix compilation error

refactor(extraSidebarComponent): simplify handleSearchInput dependency array to only include 'data' variable
refactor(extraSidebarComponent): simplify official property condition in JSX element
This commit is contained in:
anovazzi1 2023-10-20 17:30:28 -03:00
commit 5ff4b8189d

View file

@ -100,6 +100,10 @@ export default function ExtraSidebar(): JSX.Element {
}
}, [getFilterEdge, data]);
useEffect(() => {
handleSearchInput(search);
}, [data]);
const handleShareFlow = () => {
const reactFlow = flow!.data as ReactFlowJsonObject;
const saveFlow = {