Skip to content
Snippets Groups Projects
Commit 2e6ace1a authored by Ophestra's avatar Ophestra
Browse files

not append to allocated slice in page image fetch

parent 1969ea39
No related branches found
Tags v0.7.1
No related merge requests found
......@@ -129,11 +129,8 @@ func (s *Store) PageImages(variant string, entry int) []Image {
}
images := make([]Image, len(flakes))
for _, flake := range flakes {
image := s.ImageSnowflake(flake)
if image.Snowflake == flake {
images = append(images, image)
}
for i, flake := range flakes {
images[i] = s.ImageSnowflake(flake)
}
return images
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment