浏览代码

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>