Skip to content

Commit

Permalink
fix: add null check for selectedApplication
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitij-k-osmosys committed Dec 18, 2024
1 parent e4e9993 commit 220abdb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ export class NotificationsComponent implements OnInit {
limit: 15,
};

if (!this.selectedApplication) {
// Handle missing selected application
return;
}

// Set query filters
variables.filters.push({
field: 'applicationId',
Expand Down

0 comments on commit 220abdb

Please sign in to comment.