Yidadaa 1 年之前
父節點
當前提交
76e6957a8a
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      app/components/new-chat.tsx

+ 2 - 0
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