mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix: access the templateVersion.HasAITask field properly (#18434)
This commit is contained in:
@@ -8500,7 +8500,7 @@ func (q *FakeQuerier) HasTemplateVersionsWithAITask(_ context.Context) (bool, er
|
||||
defer q.mutex.RUnlock()
|
||||
|
||||
for _, templateVersion := range q.templateVersions {
|
||||
if templateVersion.HasAITask {
|
||||
if templateVersion.HasAITask.Valid && templateVersion.HasAITask.Bool {
|
||||
return true, nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user