fix: default label color (#551)

* feat: block sync

* fix: default label color
This commit is contained in:
Aaryan Khandelwal 2023-03-28 01:50:55 +05:30 committed by GitHub
parent 909ccd578b
commit e0928d6ec5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,7 +53,7 @@ export const SingleLabelGroup: React.FC<Props> = ({
.patchIssueLabel(workspaceSlug as string, projectId as string, label.id, { .patchIssueLabel(workspaceSlug as string, projectId as string, label.id, {
parent: null, parent: null,
}) })
.then((res) => { .then(() => {
mutate(PROJECT_ISSUE_LABELS(projectId as string)); mutate(PROJECT_ISSUE_LABELS(projectId as string));
}); });
}; };
@ -108,7 +108,8 @@ export const SingleLabelGroup: React.FC<Props> = ({
<span <span
className="h-2.5 w-2.5 flex-shrink-0 rounded-full" className="h-2.5 w-2.5 flex-shrink-0 rounded-full"
style={{ style={{
backgroundColor: child.color, backgroundColor:
child.color && child.color !== "" ? child.color : "#000000",
}} }}
/> />
{child.name} {child.name}