ソースを参照

fix: trigger new profile dialog, close #356

GyDi 2 年 前
コミット
d5037f180e
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/pages/profiles.tsx

+ 1 - 1
src/pages/profiles.tsx

@@ -230,7 +230,7 @@ const ProfilePage = () => {
         <Button
           variant="contained"
           size="small"
-          onClick={viewerRef.current?.create}
+          onClick={() => viewerRef.current?.create()}
         >
           {t("New")}
         </Button>