Skip to content

Commit

Permalink
fix: Fixed error Expected an assignment or function call and instead …
Browse files Browse the repository at this point in the history
…saw an expression
  • Loading branch information
joshsadam committed Nov 6, 2024
1 parent 9bc4be7 commit 106b960
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,14 @@ export default function SequencingRunDetailsPage() {
];

const optionalPropertiesList = [];
run.optionalProperties &&
Object.entries(run.optionalProperties).map(([key, value]) =>
optionalPropertiesList.push({ title: key, desc: value })
if (run.optionalProperties) {
optionalPropertiesList.push(
...Object.entries(run.optionalProperties).map(([key, value]) => ({
title: key,
desc: value,
}))
);
}

const columns = [
{
Expand Down

0 comments on commit 106b960

Please sign in to comment.