Browse Source

:fire: console.log("wbw sent ", data);

visuddhinanda 2 years ago
parent
commit
c520177843
1 changed files with 3 additions and 1 deletions
  1. 3 1
      dashboard/src/components/template/WbwSent.tsx

+ 3 - 1
dashboard/src/components/template/WbwSent.tsx

@@ -82,6 +82,7 @@ export const WbwSentCtl = ({
   const [fieldDisplay, setFieldDisplay] = useState(fields);
   const [fieldDisplay, setFieldDisplay] = useState(fields);
   const [displayMode, setDisplayMode] = useState<ArticleMode>();
   const [displayMode, setDisplayMode] = useState<ArticleMode>();
   const newMode = useAppSelector(mode);
   const newMode = useAppSelector(mode);
+  //console.log("wbw sent ", data);
   useEffect(() => {
   useEffect(() => {
     setDisplayMode(newMode);
     setDisplayMode(newMode);
     switch (newMode) {
     switch (newMode) {
@@ -163,7 +164,7 @@ export const WbwSentCtl = ({
                     real: item.real,
                     real: item.real,
                     id: `${book}-${para}-` + e.sn.join("-"),
                     id: `${book}-${para}-` + e.sn.join("-"),
                     type: item.type,
                     type: item.type,
-                    gramma: item.type,
+                    gramma: item.grammar,
                     mean: item.meaning
                     mean: item.meaning
                       ? {
                       ? {
                           value: item.meaning.value,
                           value: item.meaning.value,
@@ -178,6 +179,7 @@ export const WbwSentCtl = ({
                     parent2: item.parent2,
                     parent2: item.parent2,
                     rela: item.relation,
                     rela: item.relation,
                     lock: item.locked,
                     lock: item.locked,
+                    note: item.note,
                     bmt: item.bookMarkText,
                     bmt: item.bookMarkText,
                     bmc: item.bookMarkColor,
                     bmc: item.bookMarkColor,
                     cf: item.confidence,
                     cf: item.confidence,