diff --git a/src/components/Cars/Status/index.jsx b/src/components/Cars/Status/index.jsx index 604b42e..cd11662 100644 --- a/src/components/Cars/Status/index.jsx +++ b/src/components/Cars/Status/index.jsx @@ -110,6 +110,14 @@ const MainForm = () => { } }; + const updateName = (row) => { + if (row.updatepackage) + return `${row.updatepackage.package_name} ${row.updatepackage.version}`; + if (row.updatemanifest) + return `${row.updatemanifest.name} ${row.updatemanifest.version}`; + return "None"; + }; + return (
@@ -124,7 +132,7 @@ const MainForm = () => { {carUpdates.map((row) => ( {row.id} - {`${row.updatepackage.package_name} ${row.updatepackage.version}`} + {updateName(row)} {row.status} {LocalDateTimeString(row.created)}