From 11d72138356b9144b2889e5567e6eaf8f24055df Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Fri, 17 Nov 2023 19:56:57 +0800 Subject: [PATCH] maybe eslint isn't so bad --- interface/app/$libraryId/TopBar/index.tsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/interface/app/$libraryId/TopBar/index.tsx b/interface/app/$libraryId/TopBar/index.tsx index e1b9188a5f4f..8e31a7afb723 100644 --- a/interface/app/$libraryId/TopBar/index.tsx +++ b/interface/app/$libraryId/TopBar/index.tsx @@ -35,8 +35,6 @@ const TopBar = () => { // when the component mounts + crucial state changes, we need to update the height _before_ the browser paints // in order to avoid jank. resize observer doesn't fire early enought to account for this. useLayoutEffect(() => { - searchStore.isSearching; - const height = ref.current!.getBoundingClientRect().height; ctx.setTopBarHeight.call(undefined, height); }, [ctx.setTopBarHeight, searchStore.isSearching]);