From 98cb7370f0f73020ba3a99836e9bca10370614ea Mon Sep 17 00:00:00 2001 From: Matthew Penner Date: Mon, 2 Aug 2021 11:53:04 -0600 Subject: [PATCH] ui(admin): fix null value being passed to input --- resources/scripts/api/admin/servers/getServers.ts | 2 +- .../components/admin/servers/ServerSettingsContainer.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/scripts/api/admin/servers/getServers.ts b/resources/scripts/api/admin/servers/getServers.ts index a3c0d955..b06be071 100644 --- a/resources/scripts/api/admin/servers/getServers.ts +++ b/resources/scripts/api/admin/servers/getServers.ts @@ -21,7 +21,7 @@ export interface Server { disk: number; io: number; cpu: number; - threads: string; + threads: string | null; } featureLimits: { diff --git a/resources/scripts/components/admin/servers/ServerSettingsContainer.tsx b/resources/scripts/components/admin/servers/ServerSettingsContainer.tsx index b79c8b00..cf387ecb 100644 --- a/resources/scripts/components/admin/servers/ServerSettingsContainer.tsx +++ b/resources/scripts/components/admin/servers/ServerSettingsContainer.tsx @@ -125,7 +125,7 @@ const ServerResourceContainer = () => { @@ -285,7 +285,7 @@ export default () => { disk: server.limits.disk, io: server.limits.io, cpu: server.limits.cpu, - threads: server.limits.threads, + threads: server.limits.threads || '', databases: server.featureLimits.databases, allocations: server.featureLimits.allocations,