[WEB-849] fix: issue detail identifier and workspace settings (#4073)

* fix: issue detail identifier

* fix: workspace settings user role validation
This commit is contained in:
Anmol Singh Bhatia 2024-03-26 20:38:54 +05:30 committed by GitHub
parent 30cee78170
commit 9249e6d5b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View File

@ -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> = (props) => {
export const IssueUpdateStatus: React.FC<Props> = observer((props) => {
const { isSubmitting, issueDetail } = props;
// hooks
const { getProjectById } = useProject();
@ -33,4 +34,4 @@ export const IssueUpdateStatus: React.FC<Props> = (props) => {
</div>
</>
);
};
});

View File

@ -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 = () => {
</div>
</div>
);
};
});