@@ -125,18 +125,16 @@ export class ProjectInboxStore implements IProjectInboxStore {
125125 * @description computed project inbox filters
126126 */
127127 get inboxFilters ( ) {
128- const { projectId } = this . store . router ;
129- if ( ! projectId ) return { } as TInboxIssueFilter ;
130- return this . filtersMap ?. [ projectId ] ;
128+ if ( ! this . currentInboxProjectId ) return { } as TInboxIssueFilter ;
129+ return this . filtersMap ?. [ this . currentInboxProjectId ] ;
131130 }
132131
133132 /**
134133 * @description computed project inbox sorting
135134 */
136135 get inboxSorting ( ) {
137- const { projectId } = this . store . router ;
138- if ( ! projectId ) return { } as TInboxIssueSorting ;
139- return this . sortingMap ?. [ projectId ] ;
136+ if ( ! this . currentInboxProjectId ) return { } as TInboxIssueSorting ;
137+ return this . sortingMap ?. [ this . currentInboxProjectId ] ;
140138 }
141139
142140 get getAppliedFiltersCount ( ) {
@@ -274,7 +272,8 @@ export class ProjectInboxStore implements IProjectInboxStore {
274272 } ;
275273
276274 handleInboxIssueFilters = < T extends keyof TInboxIssueFilter > ( key : T , value : TInboxIssueFilter [ T ] ) => {
277- const { workspaceSlug, projectId } = this . store . router ;
275+ const { workspaceSlug } = this . store . router ;
276+ const projectId = this . currentInboxProjectId ;
278277 if ( workspaceSlug && projectId ) {
279278 runInAction ( ( ) => {
280279 set ( this . filtersMap , [ projectId , key ] , value ) ;
@@ -285,7 +284,8 @@ export class ProjectInboxStore implements IProjectInboxStore {
285284 } ;
286285
287286 handleInboxIssueSorting = < T extends keyof TInboxIssueSorting > ( key : T , value : TInboxIssueSorting [ T ] ) => {
288- const { workspaceSlug, projectId } = this . store . router ;
287+ const { workspaceSlug } = this . store . router ;
288+ const projectId = this . currentInboxProjectId ;
289289 if ( workspaceSlug && projectId ) {
290290 runInAction ( ( ) => {
291291 set ( this . sortingMap , [ projectId , key ] , value ) ;
0 commit comments