From 9249e6d5b9e66f28603b1e440104a91df87cac20 Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Tue, 26 Mar 2024 20:38:54 +0530 Subject: [PATCH] [WEB-849] fix: issue detail identifier and workspace settings (#4073) * fix: issue detail identifier * fix: workspace settings user role validation --- web/components/issues/issue-update-status.tsx | 5 +++-- web/layouts/settings-layout/workspace/sidebar.tsx | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/web/components/issues/issue-update-status.tsx b/web/components/issues/issue-update-status.tsx index 277404dfa..a3a8ca83b 100644 --- a/web/components/issues/issue-update-status.tsx +++ b/web/components/issues/issue-update-status.tsx @@ -1,4 +1,5 @@ import React from "react"; +import { observer } from "mobx-react"; import { RefreshCw } from "lucide-react"; import { TIssue } from "@plane/types"; // types @@ -9,7 +10,7 @@ type Props = { issueDetail?: TIssue; }; -export const IssueUpdateStatus: React.FC = (props) => { +export const IssueUpdateStatus: React.FC = observer((props) => { const { isSubmitting, issueDetail } = props; // hooks const { getProjectById } = useProject(); @@ -33,4 +34,4 @@ export const IssueUpdateStatus: React.FC = (props) => { ); -}; +}); diff --git a/web/layouts/settings-layout/workspace/sidebar.tsx b/web/layouts/settings-layout/workspace/sidebar.tsx index d6cb77cf9..f49eb84d9 100644 --- a/web/layouts/settings-layout/workspace/sidebar.tsx +++ b/web/layouts/settings-layout/workspace/sidebar.tsx @@ -1,4 +1,5 @@ import React from "react"; +import { observer } from "mobx-react"; import Link from "next/link"; import { useRouter } from "next/router"; // hooks @@ -6,7 +7,7 @@ import { EUserWorkspaceRoles, WORKSPACE_SETTINGS_LINKS } from "@/constants/works import { useUser } from "@/hooks/store"; // constants -export const WorkspaceSettingsSidebar = () => { +export const WorkspaceSettingsSidebar = observer(() => { // router const router = useRouter(); const { workspaceSlug } = router.query; @@ -44,4 +45,4 @@ export const WorkspaceSettingsSidebar = () => { ); -}; +});