fix: fix loading
This commit is contained in:
parent
520a62e704
commit
ddee58df36
@ -92,7 +92,9 @@ const EditChannel = () => {
|
|||||||
data.model_mapping = JSON.stringify(JSON.parse(data.model_mapping), null, 2);
|
data.model_mapping = JSON.stringify(JSON.parse(data.model_mapping), null, 2);
|
||||||
}
|
}
|
||||||
setInputs(data);
|
setInputs(data);
|
||||||
setConfig(JSON.parse(data.config));
|
if (data.config !== '') {
|
||||||
|
setConfig(JSON.parse(data.config));
|
||||||
|
}
|
||||||
setBasicModels(getChannelModels(data.type));
|
setBasicModels(getChannelModels(data.type));
|
||||||
} else {
|
} else {
|
||||||
showError(message);
|
showError(message);
|
||||||
|
Loading…
Reference in New Issue
Block a user