fix: lint

This commit is contained in:
Piyush Gupta
2025-11-28 20:32:51 +05:30
parent 0387418d89
commit 138d7f4d5a
2 changed files with 1 additions and 10 deletions

View File

@@ -157,20 +157,11 @@ const ProjectSelectInner = () => {
params: {
projectId: workspace.id,
orgId: workspace.orgId
},
search: {
subOrganization: currentOrg?.subOrganization?.name
}
});
const urlInstance = new URL(
`${window.location.origin}${url.to.replaceAll("$orgId", url.params.orgId).replaceAll("$projectId", url.params.projectId)}`
);
if (currentOrg?.subOrganization) {
urlInstance.searchParams.set(
"subOrganization",
currentOrg.subOrganization.name
);
}
window.location.assign(urlInstance);
}}
icon={

View File

@@ -47,7 +47,7 @@ export const OrgDeleteSection = () => {
onClick={() => handlePopUpOpen("deleteOrg")}
isDisabled={Boolean(!hasOrgRole(OrgMembershipRole.Admin))}
>
{`Delete ${currentOrg.subOrganization?.name ?? currentOrg?.name}`}
{`Delete ${currentOrg?.name}`}
</Button>
</div>
<DeleteActionModal