Fix deduping happened before saving the status

This commit is contained in:
Lim Chee Aun 2023-03-27 00:47:29 +08:00
parent 157daa68df
commit 4f8b5cf5fb

View file

@ -30,11 +30,11 @@ function Following({ title, path, id, ...props }) {
console.log('First load', latestItem.current);
}
value = dedupeBoosts(value, instance);
value = filteredItems(value, 'home');
value.forEach((item) => {
saveStatus(item, instance);
});
value = dedupeBoosts(value, instance);
// ENFORCE sort by datetime (Latest first)
value.sort((a, b) => {