Skip to content

Commit

Permalink
fix: useMemo dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Aug 7, 2020
1 parent 5b7cd6b commit 6cc71ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/src/Header/Header.tsx
Expand Up @@ -64,7 +64,7 @@ export const Header: FC<HeaderProps> = ({ 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 = [
Expand Down

0 comments on commit 6cc71ed

Please sign in to comment.