Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F85651178
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
552 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/stores/users.js b/src/stores/users.js
index 81d7269355..742e18bf05 100644
--- a/src/stores/users.js
+++ b/src/stores/users.js
@@ -208,7 +208,10 @@ export const useUsersStore = defineStore('users', {
// Misc updates
updateUserAdminData(id, data) {
const user = this.users.get(id)
-
+ if (!user) {
+ console.warn(`User id ${id} somehow not found during admin data update!`)
+ return
+ }
user.adminData = data
user.deactivated = !data.is_active
user.tags = new Set(data.tags)
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sun, Aug 30, 1:05 PM (1 d, 14 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1737992
Default Alt Text
(552 B)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment