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!

fix: prevent render loop

vinceh121118ccf1d7f24
diff --git a/src/utils/Auth.js b/src/utils/Auth.js
index dd2ea5eb..4f98540d 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 ? [...auth.users] : [];
if (isOidcEnabled()) {
if (localStorage[localStorageKeys.USERNAME]) {
const user = {