mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-29 18:52:19 +00:00
fix: Fix infinite recursion in mask upload retry logic (#2181)
This commit is contained in:
@@ -1125,7 +1125,7 @@ class MaskEditorDialog extends ComfyDialog {
|
|||||||
.then((response) => {
|
.then((response) => {
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
console.log('Failed to upload mask:', response)
|
console.log('Failed to upload mask:', response)
|
||||||
this.uploadMask(filepath, formData, 2)
|
this.uploadMask(filepath, formData, retries - 1)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user