visuddhinanda vor 3 Jahren
Ursprung
Commit
5cec7a4cf5
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  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) => {
       const newData: ISentence[] = json.data.rows.map((item) => {
         return {
+          id: item.id,
           content: item.content,
           html: item.html,
           book: item.book,
@@ -38,7 +39,7 @@ const Widget = ({ book, para, wordStart, wordEnd, channel }: IWidget) => {
   return (
     <div>
       {sentData.map((item, id) => {
-        return <SentCell data={item} key={id} />;
+        return <SentCell data={item} key={id} isPr={true} />;
       })}
     </div>
   );