Parcourir la source

fix: trigger new profile dialog, close #356

GyDi il y a 2 ans
Parent
commit
d5037f180e
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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>