[WEB-5423] fix: typescript errors and add types check step to pull request workflow (#8110)

This commit is contained in:
Prateek Shourya 2025-11-14 16:18:36 +05:30 committed by GitHub
parent 4e357c4ad0
commit 19a0ef490b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
41 changed files with 139 additions and 162 deletions

View file

@ -112,7 +112,7 @@ export abstract class BaseUserPermissionStore implements IBaseUserPermissionStor
* @param { string } projectId
* @returns { EUserPermissions | undefined }
*/
protected getProjectRole = computedFn((workspaceSlug: string, projectId: string): EUserPermissions | undefined => {
protected getProjectRole = computedFn((workspaceSlug: string, projectId?: string): EUserPermissions | undefined => {
if (!workspaceSlug || !projectId) return undefined;
const projectRole = this.workspaceProjectsPermissions?.[workspaceSlug]?.[projectId];
if (!projectRole) return undefined;