ソースを参照

raname newSent

visuddhinanda 2 年 前
コミット
b1aa1ce7c8

+ 2 - 2
dashboard/src/components/template/SentEdit/SentCanRead.tsx

@@ -108,7 +108,7 @@ const SentCanReadWidget = ({
           if (typeof user === "undefined") {
             return;
           }
-          const sentData: ISentence = {
+          const newSent: ISentence = {
             content: "",
             contentType: "markdown",
             html: "",
@@ -127,7 +127,7 @@ const SentCanReadWidget = ({
             openInEditMode: true,
           };
           setSentData((origin) => {
-            return [sentData, ...origin];
+            return [newSent, ...origin];
           });
         }}
       />