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

+ 2 - 1
dashboard/src/components/template/SentEdit/SuggestionList.tsx

@@ -21,6 +21,7 @@ const Widget = ({ book, para, wordStart, wordEnd, channel }: IWidget) => {
     ).then((json) => {
     ).then((json) => {
       const newData: ISentence[] = json.data.rows.map((item) => {
       const newData: ISentence[] = json.data.rows.map((item) => {
         return {
         return {
+          id: item.id,
           content: item.content,
           content: item.content,
           html: item.html,
           html: item.html,
           book: item.book,
           book: item.book,
@@ -38,7 +39,7 @@ const Widget = ({ book, para, wordStart, wordEnd, channel }: IWidget) => {
   return (
   return (
     <div>
     <div>
       {sentData.map((item, id) => {
       {sentData.map((item, id) => {
-        return <SentCell data={item} key={id} />;
+        return <SentCell data={item} key={id} isPr={true} />;
       })}
       })}
     </div>
     </div>
   );
   );