From 003afb271b32d0d65c98dbbc9f9f90efde881f67 Mon Sep 17 00:00:00 2001 From: Boy132 Date: Fri, 1 Jul 2022 02:23:40 +0200 Subject: [PATCH] fix: java version modal default value (#4216) --- .../components/server/features/JavaVersionModalFeature.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/scripts/components/server/features/JavaVersionModalFeature.tsx b/resources/scripts/components/server/features/JavaVersionModalFeature.tsx index 7a334eb35..91902f0aa 100644 --- a/resources/scripts/components/server/features/JavaVersionModalFeature.tsx +++ b/resources/scripts/components/server/features/JavaVersionModalFeature.tsx @@ -37,7 +37,7 @@ const JavaVersionModalFeature = () => { if (!visible) return; mutate().then((value) => { - setSelectedVersion(Object.keys(value?.dockerImages || [])[0] || ''); + setSelectedVersion(Object.values(value?.dockerImages || [])[0] || ''); }); }, [visible]);