From 76e6957a8acc8528217a016b53260cc1e62b9752 Mon Sep 17 00:00:00 2001 From: Yidadaa Date: Sat, 20 May 2023 23:53:39 +0800 Subject: [PATCH] fixup --- app/components/new-chat.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/components/new-chat.tsx b/app/components/new-chat.tsx index 5fc42bb7..30041c5c 100644 --- a/app/components/new-chat.tsx +++ b/app/components/new-chat.tsx @@ -67,6 +67,8 @@ function useMaskGroup(masks: Mask[]) { setGroups(newGroups); }; + computeGroup(); + window.addEventListener("resize", computeGroup); return () => window.removeEventListener("resize", computeGroup); // eslint-disable-next-line react-hooks/exhaustive-deps