Don't include hypernetwork info in 'copy settings' if using diffusers

This commit is contained in:
cmdr2 2023-08-18 18:10:35 +05:30
parent 4cd8ae45e3
commit 5efabfaea6

View File

@ -529,6 +529,10 @@ function restoreTaskToUI(task, fieldsToSkip) {
function readUI() {
const reqBody = {}
for (const key in TASK_MAPPING) {
if (testDiffusers.checked && (key === "use_hypernetwork_model" || key === "hypernetwork_strength")) {
continue
}
reqBody[key] = TASK_MAPPING[key].readUI()
}
return {