소스 검색

channel.length === 0

visuddhinanda 2 년 전
부모
커밋
b3e1451658
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      dashboard/src/components/term/TermEdit.tsx

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

@@ -299,7 +299,13 @@ const TermEditWidget = ({
 
             return (
               <LangSelect
-                disabled={channel ? (channel[0] === "" ? false : true) : false}
+                disabled={
+                  channel
+                    ? channel.length === 0 || channel[0] === ""
+                      ? false
+                      : true
+                    : false
+                }
               />
             );
           }}