diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsx index ad08893e1..042163531 100644 --- a/apps/client/src/widgets/react/hooks.tsx +++ b/apps/client/src/widgets/react/hooks.tsx @@ -544,7 +544,7 @@ export function useWindowSize() { window.addEventListener("resize", onResize); return () => window.removeEventListener("resize", onResize); - }); + }, []); return size; } diff --git a/apps/client/src/widgets/ribbon/EditedNotesTab.tsx b/apps/client/src/widgets/ribbon/EditedNotesTab.tsx index ce7bcfc19..5bab1c816 100644 --- a/apps/client/src/widgets/ribbon/EditedNotesTab.tsx +++ b/apps/client/src/widgets/ribbon/EditedNotesTab.tsx @@ -27,7 +27,7 @@ export default function EditedNotesTab({ note }: TabContext) { width: "100%", overflow: "auto" }}> - {editedNotes ? ( + {editedNotes?.length ? (