fix: java version modal default value (#4216)

This commit is contained in:
Boy132 2022-07-01 02:23:40 +02:00 committed by GitHub
parent cc06d1faa9
commit 003afb271b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ const JavaVersionModalFeature = () => {
if (!visible) return; if (!visible) return;
mutate().then((value) => { mutate().then((value) => {
setSelectedVersion(Object.keys(value?.dockerImages || [])[0] || ''); setSelectedVersion(Object.values(value?.dockerImages || [])[0] || '');
}); });
}, [visible]); }, [visible]);