mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-15 15:30:26 +00:00
fix: fix loading
This commit is contained in:
@@ -92,7 +92,9 @@ const EditChannel = () => {
|
||||
data.model_mapping = JSON.stringify(JSON.parse(data.model_mapping), null, 2);
|
||||
}
|
||||
setInputs(data);
|
||||
setConfig(JSON.parse(data.config));
|
||||
if (data.config !== '') {
|
||||
setConfig(JSON.parse(data.config));
|
||||
}
|
||||
setBasicModels(getChannelModels(data.type));
|
||||
} else {
|
||||
showError(message);
|
||||
|
Reference in New Issue
Block a user