mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
checker thinks this could be undefined, handle it
This commit is contained in:
@@ -4375,6 +4375,7 @@ app.post('/horde_generateimage', jsonParser, async (request, response) => {
|
||||
|
||||
if (check.done) {
|
||||
const result = await ai_horde.getImageGenerationStatus(generation.id);
|
||||
if (result.generations === undefined) return response.sendStatus(500);
|
||||
return response.send(result.generations[0].img);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user