mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-16 15:21:48 +03:00
Attempt to fix weird "latest" item bug
This commit is contained in:
parent
436d0f815d
commit
f5646fe8a8
1 changed files with 6 additions and 3 deletions
|
@ -54,9 +54,12 @@ function Following({ title, path, id, ...props }) {
|
|||
.next();
|
||||
let { value } = results;
|
||||
console.log('checkForUpdates', latestItem.current, value);
|
||||
value = filteredItems(value, 'home');
|
||||
if (value?.length && value.some((item) => !item.reblog)) {
|
||||
return true;
|
||||
if (value?.length) {
|
||||
latestItem.current = value[0].id;
|
||||
value = filteredItems(value, 'home');
|
||||
if (value.some((item) => !item.reblog)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Reference in a new issue