fix: fix default theme blank screen when edit channel again (#1363)

* fix: throw exception after submit channel edit

* fix: replace with destructuring assignment
This commit is contained in:
tylinux 2024-04-24 21:29:48 +08:00 committed by GitHub
parent 779b747e9e
commit cb33e8aad5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -174,7 +174,7 @@ const EditChannel = () => {
showInfo('模型映射必须是合法的 JSON 格式!');
return;
}
let localInputs = inputs;
let localInputs = {...inputs};
if (localInputs.base_url && localInputs.base_url.endsWith('/')) {
localInputs.base_url = localInputs.base_url.slice(0, localInputs.base_url.length - 1);
}