fix: access the templateVersion.HasAITask field properly (#18434)

This commit is contained in:
Hugo Dutka
2025-06-18 19:23:34 +02:00
committed by GitHub
parent 1357a3a273
commit de07351b8d
+1 -1
View File
@@ -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
}
}