Skip to content

Commit c05b4c2

Browse files
committed
Fixed issue showing incidents from all applications when using search and status filters when within a specific application.
1 parent cc69f2c commit c05b4c2

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

src/Server/Coderr.Server.Web/ViewModels/Incident/Components/IncidentTable.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Server/Coderr.Server.Web/ViewModels/Incident/Components/IncidentTable.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Server/Coderr.Server.Web/ViewModels/Incident/Components/IncidentTable.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class IncidentTableViewModel implements Griffin.WebApp.IPagerSubscriber {
2828
query.IsNew = true;
2929
if (applicationId != null) {
3030
query.ApplicationId = applicationId;
31+
this.applicationId = applicationId;
3132
}
3233
if (applicationVersion != null) {
3334
query.Version = applicationVersion;
@@ -193,6 +194,11 @@ class IncidentTableViewModel implements Griffin.WebApp.IPagerSubscriber {
193194

194195
private loadItems(pageNumber: number = 0): void {
195196
const query = new codeRR.Core.Incidents.Queries.FindIncidents();
197+
198+
if (this.applicationId != null) {
199+
query.ApplicationId = this.applicationId;
200+
}
201+
196202
query.SortType = this.sortType;
197203
query.SortAscending = this.sortAscending;
198204
if (this.incidentType === "closed") {

0 commit comments

Comments
 (0)