Skip to content

Commit

Permalink
fix: Remove userGUID from applications, permit number replace to orig…
Browse files Browse the repository at this point in the history
…inal cell value (#993)
  • Loading branch information
krishnan-aot authored Dec 28, 2023
1 parent d431f31 commit ad01dad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions frontend/src/features/permits/apiManager/permitsAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
import {
getCompanyIdFromSession,
httpGETRequest,
getUserGuidFromSession,
httpPUTRequest,
httpPOSTRequest,
httpGETRequestStream,
Expand Down Expand Up @@ -93,14 +92,10 @@ export const getApplicationsInProgress = async (): Promise<
> => {
try {
const companyId = getCompanyIdFromSession();
const userGuid = getUserGuidFromSession();
let applicationsUrl = `${APPLICATIONS_API_ROUTES.IN_PROGRESS}`;
if (companyId) {
applicationsUrl += `&companyId=${companyId}`;
}
if (userGuid) {
applicationsUrl += `&userGUID=${userGuid}`;
}

const response = await httpGETRequest(applicationsUrl);
const applications = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ export const PermitsColumnDefinition: MRT_ColumnDef<Permit>[] = [
enableSorting: true,
size: 500,
accessorFn: (row) => row.permitNumber,
Cell: (props: { row: any; renderedCellValue: any }) => {
Cell: (props: { row: any; cell: any }) => {
return (
<>
<Link
component="button"
variant="body2"
onClick={() => viewPermitPdf(props.row.original.permitId)}
>
{props.renderedCellValue}
{props.cell.getValue()}
</Link>
<PermitChip permitStatus={props.row.original.permitStatus} />
</>
Expand Down

0 comments on commit ad01dad

Please sign in to comment.