From b72a489f0571bd653d471c5282e8570ca917192f Mon Sep 17 00:00:00 2001 From: Yusta <53965703+NotYusta@users.noreply.github.com> Date: Wed, 14 Jun 2023 23:17:33 +0700 Subject: [PATCH 1/2] Update StartupContainer.tsx --- .../scripts/components/server/startup/StartupContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/components/server/startup/StartupContainer.tsx b/resources/scripts/components/server/startup/StartupContainer.tsx index 35bb9a63cc..cb289e2b61 100644 --- a/resources/scripts/components/server/startup/StartupContainer.tsx +++ b/resources/scripts/components/server/startup/StartupContainer.tsx @@ -124,7 +124,7 @@ const StartupContainer = () => { )} -

Variables

+ {data.variables.length != 0 &&

Variables

}
{data.variables.map((variable) => ( From 5772efd01037d803b2fa7f0b6454b4533344d2f1 Mon Sep 17 00:00:00 2001 From: Daniel Barton Date: Mon, 8 Jul 2024 23:49:52 +0800 Subject: [PATCH 2/2] Use > 0 as requested in code review --- .../scripts/components/server/startup/StartupContainer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/components/server/startup/StartupContainer.tsx b/resources/scripts/components/server/startup/StartupContainer.tsx index cb289e2b61..6c073270f7 100644 --- a/resources/scripts/components/server/startup/StartupContainer.tsx +++ b/resources/scripts/components/server/startup/StartupContainer.tsx @@ -124,7 +124,7 @@ const StartupContainer = () => { )}
- {data.variables.length != 0 &&

Variables

} + {data.variables.length > 0 &&

Variables

}
{data.variables.map((variable) => (