[WEB-5423] fix: typescript errors and add types check step to pull request workflow (#8110)
This commit is contained in:
parent
4e357c4ad0
commit
19a0ef490b
41 changed files with 139 additions and 162 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue