If the API returns state: "DONE" but the outputs field is undefined or null (e.g., if a flow finishes without producing outputs), the condition
status.state === "DONE" && status.outputs will be false. The loop will continue to poll indefinitely (or until a timeout)
If the API returns state: "DONE" but the outputs field is undefined or null (e.g., if a flow finishes without producing outputs), the condition
status.state === "DONE" && status.outputs will be false. The loop will continue to poll indefinitely (or until a timeout)