diff --git a/front/.gitignore b/front/.gitignore index e2900fc06..1b65e24b7 100644 --- a/front/.gitignore +++ b/front/.gitignore @@ -23,5 +23,6 @@ yarn-error.log* # Bundle anayzer stats.html +# Cypress cypress/screenshots cypress/videos diff --git a/front/src/store/instance.ts b/front/src/store/instance.ts index 0ce5e048b..c0a086977 100644 --- a/front/src/store/instance.ts +++ b/front/src/store/instance.ts @@ -253,7 +253,7 @@ const store: Module = { logger.info('Successfully fetched instance settings') type SettingsSection = { section: string, name: string } - const sections = response?.data.reduce((map: Record>, entry: SettingsSection) => { + const sections = response.data.reduce((map: Record>, entry: SettingsSection) => { map[entry.section] ??= {} map[entry.section][entry.name] = entry return map