Fix empty tag
This commit is contained in:
parent
d992c30346
commit
24baaf2175
@ -177,7 +177,7 @@ func (app *Bouquins) queryBooksTags(limit, offset int, sort, order string) (map[
|
||||
}
|
||||
bookTags := tags[book]
|
||||
if bookTags == nil {
|
||||
bookTags = make([]string, 1)
|
||||
bookTags = make([]string, 0)
|
||||
tags[book] = bookTags
|
||||
}
|
||||
tags[book] = append(bookTags, tag)
|
||||
|
Loading…
Reference in New Issue
Block a user