fix: Fix infinite recursion in mask upload retry logic (#2181)

This commit is contained in:
iola1999
2025-01-07 23:19:13 +08:00
committed by GitHub
parent 077ded2cce
commit 9716aea10d

View File

@@ -1125,7 +1125,7 @@ class MaskEditorDialog extends ComfyDialog {
.then((response) => {
if (!response.ok) {
console.log('Failed to upload mask:', response)
this.uploadMask(filepath, formData, 2)
this.uploadMask(filepath, formData, retries - 1)
}
})
.catch((error) => {