DanXi-Dev / DanXi-swift

A Swift Reimplementation of DanXi
GNU Affero General Public License v3.0
13 stars 3 forks source link

[Bug] Announcement page contains duplicate entries #90

Closed singularity-s0 closed 7 months ago

singularity-s0 commented 7 months ago

The AsyncCollection seems to have bug that causes duplicate entries to be added to the list. This also triggers SwiftUI warning ForEach<Array<Announcement>, UUID, ModifiedContent<Button<ModifiedContent<HStack<TupleView<(VStack<TupleView<(Text, Text)>>, Spacer, ModifiedContent<Image, _EnvironmentKeyWritingModifier<Optional<Color>>>)>>, _EnvironmentKeyWritingModifier<Optional<Color>>>>, _TaskModifier>>: the ID D4C2504D-6C0B-4F12-9557-5B68B6256A96 occurs multiple times within the collection, this will give undefined results!

singularity-s0 commented 7 months ago

It looks like filtering was done somewhere else. Won't happen in production.