This commit is contained in:
Henry Jameson 2026-08-04 19:55:44 +03:00
commit 7b4eb25fc8
18 changed files with 24 additions and 25 deletions

View file

@ -61,7 +61,7 @@ export const useChatsStore = defineStore('chats', {
addNewChats(chats) {
window.vuex.commit(
'addNewUsers',
chats.map((k) => k.account).filter((k) => k),
chats.map((k) => k.account).filter(Boolean),
)
chats.forEach((updatedChat) => {

View file

@ -836,7 +836,7 @@ export const useSyncConfigStore = defineStore('sync_config', {
: [path, finalValue]
})
newState.prefsStorage.simple = Object.fromEntries(
newEntries.filter((_) => _),
newEntries.filter(Boolean),
)
return newState
},