From c7cad452ab37b2da35edcf2a0ae5b25c80b55c2f Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Mon, 11 Dec 2023 17:31:22 +0530 Subject: [PATCH] fix: disable label combining for labels inside a group (#3069) --- .../labels/project-setting-label-group.tsx | 1 - .../labels/project-setting-label-list.tsx | 15 +++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/web/components/labels/project-setting-label-group.tsx b/web/components/labels/project-setting-label-group.tsx index 9b4e9e6ea..5b68826a0 100644 --- a/web/components/labels/project-setting-label-group.tsx +++ b/web/components/labels/project-setting-label-group.tsx @@ -77,7 +77,6 @@ export const ProjectSettingLabelGroup: React.FC = observer((props) => { {(droppableProvided) => ( diff --git a/web/components/labels/project-setting-label-list.tsx b/web/components/labels/project-setting-label-list.tsx index b3a558df7..75fc40329 100644 --- a/web/components/labels/project-setting-label-list.tsx +++ b/web/components/labels/project-setting-label-list.tsx @@ -10,11 +10,17 @@ import { DropResult, Droppable, } from "@hello-pangea/dnd"; - // store import { useMobxStore } from "lib/mobx/store-provider"; +// hooks +import useDraggableInPortal from "hooks/use-draggable-portal"; // components -import { CreateUpdateLabelInline, DeleteLabelModal, ProjectSettingLabelGroup } from "components/labels"; +import { + CreateUpdateLabelInline, + DeleteLabelModal, + ProjectSettingLabelGroup, + ProjectSettingLabelItem, +} from "components/labels"; // ui import { Button, Loader } from "@plane/ui"; import { EmptyState } from "components/common"; @@ -22,9 +28,6 @@ import { EmptyState } from "components/common"; import emptyLabel from "public/empty-state/label.svg"; // types import { IIssueLabel } from "types"; -//component -import { ProjectSettingLabelItem } from "./project-setting-label-item"; -import useDraggableInPortal from "hooks/use-draggable-portal"; const LABELS_ROOT = "labels.root"; @@ -137,7 +140,7 @@ export const ProjectSettingsLabelList: React.FC = observer(() => { isDropDisabled={isUpdating} > {(droppableProvided, droppableSnapshot) => ( -
+
{projectLabelsTree.map((label, index) => { if (label.children && label.children.length) { return (