mirror of
https://github.com/urbit/shrub.git
synced 2025-01-03 10:02:32 +03:00
hark-update: fix archival
This commit is contained in:
parent
a46b426292
commit
2f42909685
@ -353,8 +353,8 @@ function archive(json: any, state: HarkState): HarkState {
|
||||
console.warn('Modifying nonexistent timebox');
|
||||
return state;
|
||||
}
|
||||
const [unarchived] = _.partition(timebox, idxNotif =>
|
||||
notifIdxEqual(index, idxNotif.index)
|
||||
const unarchived = _.filter(timebox, idxNotif =>
|
||||
!notifIdxEqual(index, idxNotif.index)
|
||||
);
|
||||
if(unarchived.length === 0) {
|
||||
console.log('deleting entire timebox');
|
||||
|
Loading…
Reference in New Issue
Block a user