diff --git a/DanXiUI/Forum/Model/ReportModel.swift b/DanXiUI/Forum/Model/ReportModel.swift index 9ce2a1bd..6eb3bc24 100644 --- a/DanXiUI/Forum/Model/ReportModel.swift +++ b/DanXiUI/Forum/Model/ReportModel.swift @@ -20,6 +20,7 @@ class ReportModel: ObservableObject { @Published var filterOption = FilterOption.notDealt { didSet { + endReached = false self.reports = [] } } diff --git a/DanXiUI/Forum/Pages/ReportPage.swift b/DanXiUI/Forum/Pages/ReportPage.swift index 9481895f..43a83737 100644 --- a/DanXiUI/Forum/Pages/ReportPage.swift +++ b/DanXiUI/Forum/Pages/ReportPage.swift @@ -10,6 +10,7 @@ struct ReportPage: View { AsyncCollection(model.reports, endReached: model.endReached, action: model.loadMoreReports) { report in ReportView(report: report) } + .id(model.filterOption) } .environmentObject(model) .listStyle(.inset)