Browse Source

提交代码

tags/v1.22.6.2^2
ychao_1983 3 years ago
parent
commit
4a19537165
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      models/dataset.go

+ 3
- 0
models/dataset.go View File

@@ -146,6 +146,9 @@ func (datasets DatasetList) loadAttachmentAttributes(opts *SearchDatasetOptions)
}

for i := range datasets {
if datasets[i].Attachments==nil{
datasets[i].Attachments=[]*Attachment{}
}
datasets[i].Repo.Owner = nil
}
return nil


Loading…
Cancel
Save