Преглед изворни кода

Merge pull request #2033 from visuddhinanda/agile

注疏channel 要传 channels参数
visuddhinanda пре 2 година
родитељ
комит
483f0df455
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      dashboard/src/components/template/SentEdit/SentCanRead.tsx

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

@@ -43,6 +43,9 @@ const SentCanReadWidget = ({
     const sentId = `${book}-${para}-${wordStart}-${wordEnd}`;
     let url = `/v2/sentence?view=sent-can-read&sentence=${sentId}&type=${type}&mode=edit&html=true`;
     url += channelsId ? `&excludes=${channelsId.join()}` : "";
+    if (type === "commentary") {
+      url += channelsId ? `&channels=${channelsId.join()}` : "";
+    }
     console.log("url", url);
     get<ISentenceListResponse>(url)
       .then((json) => {