Forráskód Böngészése

没有parentChannelId 用 channelId

visuddhinanda 2 éve
szülő
commit
00ff75e850
1 módosított fájl, 1 hozzáadás és 2 törlés
  1. 1 2
      dashboard/src/components/term/TermEdit.tsx

+ 1 - 2
dashboard/src/components/term/TermEdit.tsx

@@ -84,7 +84,6 @@ const TermEditWidget = ({
   const [isSaveAs, setIsSaveAs] = useState(false);
   const [currChannel, setCurrChannel] = useState<ValueType[]>([]);
   const user = useAppSelector(_currentUser);
-
   //console.log("word", id, word, channelId, studioName);
 
   const [form] = Form.useForm<ITerm>();
@@ -383,7 +382,7 @@ const TermEditWidget = ({
                 disabled: user?.id !== parentStudioId,
               },
               {
-                value: parentChannelId,
+                value: parentChannelId ? parentChannelId : channelId,
                 label: "仅用于此版本",
                 disabled: !community && readonly,
               },