This commit is contained in:
Kurt Hutten Irev-Dev
2025-05-02 08:02:44 +10:00
parent 4938998ba1
commit d7893a1018

View File

@ -366,7 +366,11 @@ export async function doPromptEdit({
while (timeElapsed < MAX_CHECK_TIMEOUT) {
const check = await getPromptToEditResult(submitResult.id, token)
if (check instanceof Error || check.status === 'failed' || check.error) {
if (
check instanceof Error ||
check.status === 'failed' ||
check.error
) {
reject(check)
return
} else if (check.status === 'completed') {