Skip to content

Commit 31605c7

Browse files
committed
fix(settings): resolve Cypress crash on undefined showConfig
Signed-off-by: Peter Ringelmann <[email protected]>
1 parent 6a9be2e commit 31605c7

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

apps/settings/src/store/users.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ const state = {
4444
disabledUsersLimit: 25,
4545
userCount: usersSettings.userCount ?? 0,
4646
showConfig: {
47-
showStoragePath: usersSettings.showConfig.user_list_show_storage_path,
48-
showUserBackend: usersSettings.showConfig.user_list_show_user_backend,
49-
showFirstLogin: usersSettings.showConfig.user_list_show_first_login,
50-
showLastLogin: usersSettings.showConfig.user_list_show_last_login,
51-
showNewUserForm: usersSettings.showConfig.user_list_show_new_user_form,
52-
showLanguages: usersSettings.showConfig.user_list_show_languages,
47+
showStoragePath: usersSettings.showConfig?.user_list_show_storage_path,
48+
showUserBackend: usersSettings.showConfig?.user_list_show_user_backend,
49+
showFirstLogin: usersSettings.showConfig?.user_list_show_first_login,
50+
showLastLogin: usersSettings.showConfig?.user_list_show_last_login,
51+
showNewUserForm: usersSettings.showConfig?.user_list_show_new_user_form,
52+
showLanguages: usersSettings.showConfig?.user_list_show_languages,
5353
},
5454
}
5555

dist/settings-vue-settings-apps-users-management.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/settings-vue-settings-apps-users-management.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)