diff --git a/react-app/src/components/layout/Header.tsx b/react-app/src/components/layout/Header.tsx index 0d4e3b772..431b08498 100644 --- a/react-app/src/components/layout/Header.tsx +++ b/react-app/src/components/layout/Header.tsx @@ -103,7 +103,7 @@ const Header: React.FC = () => { - {isAuthenticated && auth.pimsUser.data?.Status === 'Active' && ( + {isAuthenticated && auth?.pimsUser?.data?.Status === 'Active' && ( <> {user.client_roles?.includes(Roles.ADMIN) ? ( <> diff --git a/react-app/src/components/projects/AddProject.tsx b/react-app/src/components/projects/AddProject.tsx index 1e560be5e..1c241acf3 100644 --- a/react-app/src/components/projects/AddProject.tsx +++ b/react-app/src/components/projects/AddProject.tsx @@ -26,7 +26,7 @@ const AddProject = () => { Description: '', Assessed: 0, NetBook: 0, - Estimated: 0, + Market: 0, Appraised: 0, ProgramCost: 0, SalesCost: 0, diff --git a/react-app/src/components/table/DataTable.tsx b/react-app/src/components/table/DataTable.tsx index a4497e4b9..0eb346576 100644 --- a/react-app/src/components/table/DataTable.tsx +++ b/react-app/src/components/table/DataTable.tsx @@ -393,7 +393,7 @@ export const FilterSearchDataGrid = (props: FilterSearchDataGridProps) => { ) { // model.quickFilter = undefined; const modelObj: GridFilterModel = { - items: undefined, + items: [], quickFilterValues: undefined, }; if (query.columnFilterName && query.columnFilterValue && query.columnFilterMode) { diff --git a/react-app/src/pages/ErrorFallback.tsx b/react-app/src/pages/ErrorFallback.tsx index 18e9e58c0..fd0017bfe 100644 --- a/react-app/src/pages/ErrorFallback.tsx +++ b/react-app/src/pages/ErrorFallback.tsx @@ -35,6 +35,9 @@ const ErrorFallback = ({ error, resetErrorBoundary }) => { errorTracker.count > 0 && errorTracker.location === window.location.pathname ) { + // Removes existing cookie from this pathname. Mostly used for tables. + sessionStorage.removeItem(window.location.pathname.slice(1)); + // Reset error tracker count. sessionStorage.setItem( 'errorTracker', JSON.stringify({