mirror of
https://github.com/urbit/shrub.git
synced 2025-01-05 11:09:30 +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');
|
console.warn('Modifying nonexistent timebox');
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
const [unarchived] = _.partition(timebox, idxNotif =>
|
const unarchived = _.filter(timebox, idxNotif =>
|
||||||
notifIdxEqual(index, idxNotif.index)
|
!notifIdxEqual(index, idxNotif.index)
|
||||||
);
|
);
|
||||||
if(unarchived.length === 0) {
|
if(unarchived.length === 0) {
|
||||||
console.log('deleting entire timebox');
|
console.log('deleting entire timebox');
|
||||||
|
Loading…
Reference in New Issue
Block a user