From 6cc71ed254ba9a641bf9574300431f2c247016ab Mon Sep 17 00:00:00 2001 From: atanasster Date: Fri, 7 Aug 2020 12:27:59 +0300 Subject: [PATCH] fix: useMemo dependency --- ui/app/src/Header/Header.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/src/Header/Header.tsx b/ui/app/src/Header/Header.tsx index 843ca4a71..da2231ac4 100644 --- a/ui/app/src/Header/Header.tsx +++ b/ui/app/src/Header/Header.tsx @@ -64,7 +64,7 @@ export const Header: FC = ({ toolbar = {} }) => { ] : actions; return toolbar.left ? [...finalActions, ...toolbar.left] : finalActions; - }, [pages, toolbar.left, docCounts]); + }, [pages, toolbar.left, docCounts, homePage.docId]); const rightActions: ActionItems = useMemo(() => { const actions: ActionItems = [