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

fix: model names must not contain spaces at both ends

QuentinHsu пре 2 година
родитељ
комит
d160736a49
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      web/src/pages/Channel/EditChannel.js

+ 1 - 1
web/src/pages/Channel/EditChannel.js

@@ -454,7 +454,7 @@ const EditChannel = (props) => {
                             placeholder='输入自定义模型名称'
                             value={customModel}
                             onChange={(value) => {
-                                setCustomModel(value);
+                                setCustomModel(value.trim());
                             }}
                         />
                     </div>