diff --git a/src/components/blocks/APIDataTable.js b/src/components/blocks/APIDataTable.js
index 6ccf2860..98396e09 100644
--- a/src/components/blocks/APIDataTable.js
+++ b/src/components/blocks/APIDataTable.js
@@ -170,7 +170,7 @@ const APIDataTable = withTheme(
let fullRecord = null;
if (actions === 'Projects') {
- fullRecord = projects.filter(
+ fullRecord = projects?.filter(
project =>
project.warehouseProjectId === partialRecord.warehouseProjectId,
)[0];
diff --git a/src/components/blocks/UnitsDetails.js b/src/components/blocks/UnitsDetails.js
index adf07d96..0d4fe3d2 100644
--- a/src/components/blocks/UnitsDetails.js
+++ b/src/components/blocks/UnitsDetails.js
@@ -102,8 +102,7 @@ const UnitsDetails = ({ data, stagingData, changeColor }) => {
- {data &&
- detailsViewData('data', data, 'unitBlockStart', changeColor)}
+ {data && detailsViewData('data', data, 'unitBlockStart', false)}
{stagingData &&
detailsViewData(
'stagingData',
diff --git a/src/components/forms/ProjectEditModal.js b/src/components/forms/ProjectEditModal.js
index 9b09ed4f..c4fcb4ef 100644
--- a/src/components/forms/ProjectEditModal.js
+++ b/src/components/forms/ProjectEditModal.js
@@ -42,7 +42,7 @@ const ProjectEditModal = ({
}) => {
const projectToBeEdited = useSelector(
state =>
- state.climateWarehouse.projects.filter(
+ state?.climateWarehouse?.projects?.filter(
project => project.warehouseProjectId === record.warehouseProjectId,
)[0],
);
diff --git a/src/components/forms/ProjectTransferModal.js b/src/components/forms/ProjectTransferModal.js
index 71691c01..52f5ae1a 100644
--- a/src/components/forms/ProjectTransferModal.js
+++ b/src/components/forms/ProjectTransferModal.js
@@ -42,7 +42,7 @@ const ProjectTransferModal = ({
}) => {
const projectToBeTransferred = useSelector(
state =>
- state.climateWarehouse.projects.filter(
+ state?.climateWarehouse?.projects?.filter(
project => project.warehouseProjectId === record.warehouseProjectId,
)[0],
);
diff --git a/src/components/forms/UnitCreateModal.js b/src/components/forms/UnitCreateModal.js
index b5f798de..6274c2bb 100644
--- a/src/components/forms/UnitCreateModal.js
+++ b/src/components/forms/UnitCreateModal.js
@@ -38,8 +38,6 @@ const emptyUnit = {
countryJurisdictionOfOwner: '',
inCountryJurisdictionOfOwner: '',
unitCount: 0,
- unitBlockEnd: '',
- unitBlockStart: '',
marketplace: '',
marketplaceLink: '',
marketplaceIdentifier: '',
diff --git a/src/components/forms/UnitDetailsForm.js b/src/components/forms/UnitDetailsForm.js
index c404e0fc..8916e93f 100644
--- a/src/components/forms/UnitDetailsForm.js
+++ b/src/components/forms/UnitDetailsForm.js
@@ -36,7 +36,7 @@ import {
SimpleSelectStateEnum,
} from '..';
-const UnitDetailsForm = () => {
+const UnitDetailsForm = ({ noUnitCount = false }) => {
const intl = useIntl();
const { pickLists, myProjects, issuances } = useSelector(
store => store.climateWarehouse,
@@ -155,7 +155,8 @@ const UnitDetailsForm = () => {
+ })}
+ >