Skip to content

Commit ebc24b4

Browse files
dido18lucarin91
andauthored
Update internal/orchestrator/bricks/bricks.go
Co-authored-by: Luca Rinaldi <l.rinaldi@arduino.cc>
1 parent 1ef3a2f commit ebc24b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/orchestrator/bricks/bricks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func getSelectedModelOrDefault(appBrick app.Brick, brickIndex *bricksindex.Brick
141141
return appBrick.Model
142142
}
143143
f.Assert(brickIndex != nil, "bricksindex should be set")
144-
return brickIndex.ModelName
144+
return cmp.Or(brickIndex.ModelName, appBrick.Model)
145145
}
146146

147147
func getInstanceBrickConfigVariableDetails(

0 commit comments

Comments
 (0)