Unverified Commit 47b99ae8 authored by Marius van den Beek's avatar Marius van den Beek Committed by GitHub
Browse files

Merge pull request #16464 from davelopez/23.0_fix_user_preferences_disabled_condition

[23.0] Fix filtering of disabled user preferences in UI
parents a12ca8f1 65c20375
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -154,7 +154,10 @@ export default {
    },
    computed: {
        activePreferences() {
            const enabledPreferences = Object.entries(getUserPreferencesModel()).filter((f) => !f.disabled);
            const userPreferencesEntries = Object.entries(getUserPreferencesModel());
            // Object.entries returns an array of arrays, where the first element
            // is the key (string) and the second is the value (object)
            const enabledPreferences = userPreferencesEntries.filter((f) => !f[1].disabled);
            return Object.fromEntries(enabledPreferences);
        },
        hasLogout() {