visuddhinanda пре 2 година
родитељ
комит
8cd18c0ca1
1 измењених фајлова са 4 додато и 1 уклоњено
  1. 4 1
      dashboard/src/components/template/SentEdit/SentCellEditable.tsx

+ 4 - 1
dashboard/src/components/template/SentEdit/SentCellEditable.tsx

@@ -50,6 +50,7 @@ export const sentSave = (
           editor: json.data.editor,
           studio: json.data.studio,
           channel: json.data.channel,
+          forkAt: json.data.fork_at,
           updateAt: json.data.updated_at,
         };
         ok(newData);
@@ -154,7 +155,6 @@ const SentCellEditableWidget = ({
     setSaving(true);
     let url = `/v2/sentence/${data.book}_${data.para}_${data.wordStart}_${data.wordEnd}_${data.channel.id}`;
     url += "?mode=edit&html=true";
-    console.log("save url", url);
     const body = {
       book: data.book,
       para: data.para,
@@ -164,6 +164,7 @@ const SentCellEditableWidget = ({
       content: value,
       channels: data.translationChannels?.join(),
     };
+    console.debug("save url", url, body);
     put<ISentenceRequest, ISentenceResponse>(url, body)
       .then((json) => {
         if (json.ok) {
@@ -178,7 +179,9 @@ const SentCellEditableWidget = ({
               wordStart: json.data.word_start,
               wordEnd: json.data.word_end,
               editor: json.data.editor,
+              studio: json.data.studio,
               channel: json.data.channel,
+              forkAt: json.data.fork_at,
               updateAt: json.data.updated_at,
             };
             onSave(newData);