fix: build errors
This commit is contained in:
parent
dff12729c0
commit
30453d1c79
2 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@ export const IssueLabelSelect: React.FC<IIssueLabelSelect> = observer((props) =>
|
||||||
const [submitting, setSubmitting] = useState<boolean>(false);
|
const [submitting, setSubmitting] = useState<boolean>(false);
|
||||||
|
|
||||||
const canCreateLabel =
|
const canCreateLabel =
|
||||||
projectId && allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.PROJECT, workspaceSlug, projectId);
|
projectId && allowPermissions([EUserProjectRoles.ADMIN], EUserPermissionsLevel.PROJECT, workspaceSlug, projectId);
|
||||||
|
|
||||||
const projectLabels = getProjectLabels(projectId);
|
const projectLabels = getProjectLabels(projectId);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ export const LabelDropdown = (props: ILabelDropdownProps) => {
|
||||||
const { allowPermissions } = useUserPermissions();
|
const { allowPermissions } = useUserPermissions();
|
||||||
|
|
||||||
const canCreateLabel =
|
const canCreateLabel =
|
||||||
projectId && allowPermissions([EUserPermissions.ADMIN], EUserPermissionsLevel.PROJECT, workspaceSlug, projectId);
|
projectId && allowPermissions([EUserProjectRoles.ADMIN], EUserPermissionsLevel.PROJECT, workspaceSlug, projectId);
|
||||||
|
|
||||||
let projectLabels: IIssueLabel[] = defaultOptions;
|
let projectLabels: IIssueLabel[] = defaultOptions;
|
||||||
if (storeLabels && storeLabels.length > 0) projectLabels = storeLabels;
|
if (storeLabels && storeLabels.length > 0) projectLabels = storeLabels;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue