diff --git a/apps/nar-v3/src/components/CellPatchingCard.jsx b/apps/nar-v3/src/components/CellPatchingCard.jsx
index baf6fdc..a427a52 100644
--- a/apps/nar-v3/src/components/CellPatchingCard.jsx
+++ b/apps/nar-v3/src/components/CellPatchingCard.jsx
@@ -28,25 +28,25 @@ import { formatQuant, formatSolution } from "../utility";
function CellPatchingCard(props) {
const activity = props.activity;
- const data = {
- "Electrode description": activity.device[0].device.description,
- "Pipette solution": formatSolution(activity.device[0].pipetteSolution),
- "Seal resistance": activity.device[0].sealResistance.value
- .map((item) => formatQuant(item))
- .join(", "),
- "Series resistance": activity.device[0].seriesResistance.value
- .map((item) => formatQuant(item))
- .join(", "),
- "Holding potential": activity.device[0].holdingPotential.value
- .map((item) => formatQuant(item))
- .join(", "),
- "Bath solution": formatSolution(activity.tissueBathSolution),
- "Bath temperature": formatQuant(activity.bathTemperature),
- Description: activity.description,
- Type: activity.variation,
- };
-
if (activity) {
+ const data = {
+ "Electrode description": activity.device[0].device.description,
+ "Pipette solution": formatSolution(activity.device[0].pipetteSolution),
+ "Seal resistance": activity.device[0].sealResistance.value
+ .map((item) => formatQuant(item))
+ .join(", "),
+ "Series resistance": activity.device[0].seriesResistance.value
+ .map((item) => formatQuant(item))
+ .join(", "),
+ "Holding potential": activity.device[0].holdingPotential.value
+ .map((item) => formatQuant(item))
+ .join(", "),
+ "Bath solution": formatSolution(activity.tissueBathSolution),
+ "Bath temperature": formatQuant(activity.bathTemperature),
+ Description: activity.description,
+ Type: activity.variation,
+ };
+
return (
<>
diff --git a/apps/nar-v3/src/components/DataFileCard.jsx b/apps/nar-v3/src/components/DataFileCard.jsx
index 78c99e0..c70d237 100644
--- a/apps/nar-v3/src/components/DataFileCard.jsx
+++ b/apps/nar-v3/src/components/DataFileCard.jsx
@@ -27,22 +27,22 @@ import styles from "../styles";
function DataFileCard(props) {
const fileObj = props.fileObj;
- const data = {
- "Data type": fileObj.dataType ? fileObj.dataType.name : "unknown",
- Format: fileObj.format ? fileObj.format.name : "unknown",
- Hash: (
- <>
- {fileObj.hash.map((item) => (
-
- {item.algorithm}: {item.digest}
-
- ))}
- >
- ),
- Size: formatQuant(fileObj.storageSize),
- };
-
if (fileObj) {
+ const data = {
+ "Data type": fileObj.dataType ? fileObj.dataType.name : "unknown",
+ Format: fileObj.format ? fileObj.format.name : "unknown",
+ Hash: (
+ <>
+ {fileObj.hash.map((item) => (
+
+ {item.algorithm}: {item.digest}
+
+ ))}
+ >
+ ),
+ Size: formatQuant(fileObj.storageSize),
+ };
+
return (
<>