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

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

@@ -34,7 +34,7 @@ const SentCanReadWidget = ({
     )
       .then((json) => {
         if (json.ok) {
-          console.log("pr load", json.data.rows);
+          console.log("sent load", json.data.rows);
           const newData: ISentence[] = json.data.rows.map((item) => {
             return {
               id: item.id,
@@ -47,6 +47,7 @@ const SentCanReadWidget = ({
               editor: item.editor,
               studio: item.studio,
               channel: item.channel,
+              suggestionCount: item.suggestionCount,
               updateAt: item.updated_at,
             };
           });
@@ -81,7 +82,7 @@ const SentCanReadWidget = ({
         />
       </div>
       {sentData.map((item, id) => {
-        return <SentCell data={item} key={id} isPr={true} />;
+        return <SentCell data={item} key={id} isPr={false} />;
       })}
     </>
   );