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]);