Skip to content

Commit

Permalink
Fix task project ID for new project title (#471)
Browse files Browse the repository at this point in the history
  • Loading branch information
Megha-Dev-19 authored Jul 8, 2024
1 parent 139a506 commit c3c10e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/new/widget/page/project/tabs/Task.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ const { normalize } = VM.require("${alias_devs}/widget/lib.stringUtils") || {
normalize: () => {},
};

const { getProjectMeta } = VM.require("${alias_new}/widget/lib.projects") || {
const { getProjectMeta, getProjectIdFromPath } = VM.require(
"${alias_new}/widget/lib.projects",
) || {
getProjectMeta: () => {},
getProjectIdFromPath: () => {},
};

const { id } = props;
Expand Down Expand Up @@ -136,7 +139,7 @@ const Wrapper = styled.div`
}
`;

const projectID = normalize(project?.title, "-");
const projectID = getProjectIdFromPath(id);

const StatusValues = {
PROPOSED: "proposed",
Expand Down

0 comments on commit c3c10e4

Please sign in to comment.