Remove onnx models from img2img and unified canvas

This commit is contained in:
Brandon Rising
2023-07-26 16:30:02 -04:00
parent f26a423e95
commit 4d732e06de
6 changed files with 11 additions and 7 deletions

View File

@ -65,7 +65,11 @@ const ParamMainModelSelect = () => {
});
});
forEach(onnxModels?.entities, (model, id) => {
if (!model) {
if (
!model ||
activeTabName === 'unifiedCanvas' ||
activeTabName === 'img2img'
) {
return;
}