File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
apps/renderer/src/store/entry Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ class EntryActions {
161
161
} )
162
162
163
163
if ( data . data ) {
164
- this . upsertMany ( data . data )
164
+ this . upsertMany ( data . data , { isArchived } )
165
165
}
166
166
return data
167
167
}
@@ -241,7 +241,7 @@ class EntryActions {
241
241
} )
242
242
}
243
243
244
- upsertMany ( data : CombinedEntryModel [ ] ) {
244
+ upsertMany ( data : CombinedEntryModel [ ] , options ?: { isArchived ?: boolean } ) {
245
245
const feeds = [ ] as FeedOrListRespModel [ ]
246
246
const entries = [ ] as EntryModel [ ]
247
247
const inboxes = [ ] as InboxModel [ ]
@@ -346,7 +346,7 @@ class EntryActions {
346
346
}
347
347
}
348
348
349
- if ( item . settings && draft . flatMapEntries [ item . entries . id ] ) {
349
+ if ( item . settings && draft . flatMapEntries [ item . entries . id ] && ! options ?. isArchived ) {
350
350
draft . flatMapEntries [ item . entries . id ] . settings = item . settings
351
351
}
352
352
}
You can’t perform that action at this time.
0 commit comments