diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 8d3c041a..f7b9b06d 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -522,7 +522,7 @@ async function doMakeImage(task) { if (typeof renderRequest?.stream !== 'string') { console.log('Endpoint response: ', renderRequest) - throw new Error(renderRequest.detail || 'Endpoint response does not contains a response stream url.') + throw new Error(renderRequest?.detail || 'Endpoint response does not contains a response stream url.') } task['taskStatusLabel'].innerText = "Waiting"