Skip to content

Commit

Permalink
Removing duplicate code
Browse files Browse the repository at this point in the history
  • Loading branch information
rquazi committed Nov 11, 2024
1 parent 56f3839 commit 6cee1df
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion mscr-ui/src/modules/form/generate-payload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export default function generatePayload(
): Partial<Metadata> {
const organizations: Organization[] = [];
if (user && organizationPid && organizationPid !== '') {
console.log(organizationPid);
const ownerOrg = user?.organizations.find((x) => x.id == organizationPid);
if (ownerOrg) organizations.push(ownerOrg);
}
Expand Down
9 changes: 0 additions & 9 deletions mscr-ui/src/modules/form/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,6 @@ export default function FormModal({
pid = resultSchemaMscrCopy.data.pid;
}
break;
case ModalType.RevisionMscr:
if (
contentType == Type.Schema &&
resultMscrSchemaRevision.isSuccess &&
resultMscrSchemaRevision.data
) {
pid = resultMscrSchemaRevision.data.pid;
}
break;
// TODO: MscrCopy API slice and then pid retrieval for crosswalk here
}
return pid;
Expand Down

0 comments on commit 6cee1df

Please sign in to comment.