Skip to content

Commit

Permalink
fix #362
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieyang committed Sep 8, 2023
1 parent 1ae3163 commit 7421db3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typescripts/controlnet/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ async function requestControlNetApiVersion() {
async function requestControlNetMaxUnits() {
const json = await api.requestGet(`${g_sd_url}/controlnet/settings`)

const control_net_max_models_num = json?.control_net_max_models_num ?? 0
const control_net_max_models_num = (json?.control_net_unit_count || json?.control_net_max_models_num) ?? 0

return control_net_max_models_num
}
Expand Down

2 comments on commit 7421db3

@musostudios
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where do I do this change? Thank you

@musostudios
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, found out where to do this change in the file path and on the entry file, but getting the same error.

Please sign in to comment.