From 31ccb9c9334c41df3f215d2170f797885a1f8ccf Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Sun, 11 Sep 2022 14:21:16 +0300 Subject: [PATCH] fix no disk case --- src/components/widgets/resources/resources.jsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/widgets/resources/resources.jsx b/src/components/widgets/resources/resources.jsx index 315ebf18e..ae8f37941 100644 --- a/src/components/widgets/resources/resources.jsx +++ b/src/components/widgets/resources/resources.jsx @@ -8,11 +8,9 @@ export default function Resources({ options }) {
{options.cpu && } {options.memory && } - {Array.isArray(options.disk) ? ( - options.disk.map((disk) => ) - ) : ( - - )} + {Array.isArray(options.disk) + ? options.disk.map((disk) => ) + : options.disk && }
{options.label && (
{options.label}