From 3b13b16b9d8299c13a30120c320ed980f1023358 Mon Sep 17 00:00:00 2001 From: Damien Vitrac Date: Mon, 6 May 2024 16:43:14 +0200 Subject: [PATCH] Fix --- start-client/src/components/reducer/Initializr.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/start-client/src/components/reducer/Initializr.js b/start-client/src/components/reducer/Initializr.js index 25336e7984..0f77f7c455 100644 --- a/start-client/src/components/reducer/Initializr.js +++ b/start-client/src/components/reducer/Initializr.js @@ -53,10 +53,11 @@ const getPersistedOrDefault = json => { java: localStorage.getItem('java') || get(json, 'defaultValues.meta.java'), }, + dependencies: [], } const checks = ['project', 'language', 'boot', 'meta.java', 'meta.packaging'] checks.forEach(key => { - const item = get(json, `lists.${key}`).find( + const item = get(json, `lists.${key}`)?.find( it => it.key === get(values, key) ) if (!item) {