Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ› Deep copy auth.users to prevent infinite loop (#1995)

Alicia Sykes9c8764240aa9
diff --git a/src/utils/Auth.js b/src/utils/Auth.js
index dd2ea5eb..705da8b4 100644
--- a/src/utils/Auth.js
+++ b/src/utils/Auth.js
@@ -32,7 +32,7 @@ const getUsers = () => {
}
// Otherwise, return the users array, if available
- const users = auth.users || [];
+ const users = [...(auth.users || [])];
if (isOidcEnabled()) {
if (localStorage[localStorageKeys.USERNAME]) {
const user = {