Skip to content

Commit ce9647c

Browse files
committed
When closing, we need to make sure that the selected incident havent been undefined
1 parent bfee5bb commit ce9647c

File tree

1 file changed

+1
-1
lines changed
  • src/Server/Coderr.Server.Web/ClientApp/components/analyze

1 file changed

+1
-1
lines changed

src/Server/Coderr.Server.Web/ClientApp/components/analyze/myincidents.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ export class MyIncidents {
285285
var incident = this.allMyIncidents$[i];
286286
this.allMyIncidents$.splice(i, 1);
287287
this.filterMyIncidents();
288-
if (this.selectedIncident.incidentId === incident.incidentId) {
288+
if (this.selectedIncident != null && this.selectedIncident.incidentId === incident.incidentId) {
289289
this.selectedIncident = null;
290290
}
291291

0 commit comments

Comments
 (0)