visuddhinanda 2 anni fa
parent
commit
4969c60984

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

@@ -64,6 +64,7 @@ const SentCanReadWidget = ({
               editor: item.editor,
               editor: item.editor,
               studio: item.studio,
               studio: item.studio,
               channel: item.channel,
               channel: item.channel,
+              contentType: item.content_type,
               suggestionCount: item.suggestionCount,
               suggestionCount: item.suggestionCount,
               translationChannels: channelsId,
               translationChannels: channelsId,
               forkAt: item.fork_at,
               forkAt: item.fork_at,
@@ -157,7 +158,7 @@ const SentCanReadWidget = ({
             isPr={false}
             isPr={false}
             editMode={item.openInEditMode}
             editMode={item.openInEditMode}
             onChange={(value: ISentence) => {
             onChange={(value: ISentence) => {
-              console.log("onChange", value);
+              console.debug("onChange", value);
               setSentData((origin) => {
               setSentData((origin) => {
                 origin.forEach((value1, index, array) => {
                 origin.forEach((value1, index, array) => {
                   if (value1.id === value.id) {
                   if (value1.id === value.id) {