From 443b93f897ed96c6dc52ecb1f097e12e4216e6dd Mon Sep 17 00:00:00 2001 From: Lakhan Baheti <94619783+1akhanBaheti@users.noreply.github.com> Date: Tue, 12 Mar 2024 19:10:35 +0530 Subject: [PATCH] fix: label mutation in peek-overview & issue detail (#3942) --- web/components/issues/issue-detail/label/label-list.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/components/issues/issue-detail/label/label-list.tsx b/web/components/issues/issue-detail/label/label-list.tsx index fdf94be28..093556a34 100644 --- a/web/components/issues/issue-detail/label/label-list.tsx +++ b/web/components/issues/issue-detail/label/label-list.tsx @@ -1,4 +1,5 @@ import { FC } from "react"; +import { observer } from "mobx-react"; // components import { useIssueDetail } from "hooks/store"; import { LabelListItem } from "./label-list-item"; @@ -14,7 +15,7 @@ type TLabelList = { disabled: boolean; }; -export const LabelList: FC = (props) => { +export const LabelList: FC = observer((props) => { const { workspaceSlug, projectId, issueId, labelOperations, disabled } = props; // hooks const { @@ -40,4 +41,4 @@ export const LabelList: FC = (props) => { ))} ); -}; +});