Skip to content

Commit 4304a98

Browse files
committed
Fix engineID usage.
1 parent 0154c8c commit 4304a98

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

BlazorDiffusion.ServiceInterface/CreativeService.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ public ImageGeneration CreateImageGenerationRequest(CreateCreative request, List
256256
var to = new ImageGeneration
257257
{
258258
Prompt = apiPrompt,
259-
Engine = request.EngineId ?? DefaultEngine,
259+
Engine = string.IsNullOrEmpty(request.EngineId) ? DefaultEngine : request.EngineId,
260260
Height = height,
261261
Width = width,
262262
Images = noOfImages,

0 commit comments

Comments
 (0)