visuddhinanda 2 лет назад
Родитель
Сommit
b1aa1ce7c8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      dashboard/src/components/template/SentEdit/SentCanRead.tsx

+ 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];
           });
         }}
       />