Skip to content

Commit

Permalink
Fix Bookmarks paging
Browse files Browse the repository at this point in the history
  • Loading branch information
moysa committed Oct 14, 2024
1 parent c75f425 commit 71a0c61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/components/SelectionBox/SelectionBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ const SelectionBox: Component<{
<div class={styles.title}>
Note Feeds:
</div>
<A href='/settings/feeds'>Edit Feeds</A>
</div>
<Select.Listbox class={styles.listbox}/>
</Select.Content>
Expand Down
4 changes: 2 additions & 2 deletions src/pages/Bookmarks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const Bookmarks: Component = () => {
createEffect(on(() => account?.isKeyLookupDone, (v) => {
if (v && account?.publicKey) {
updateStore(() => ({ ...emptyStore }));
updateStore('fetchingInProgress', () => true);
fetchBookmarks(account.publicKey);
}
}));
Expand All @@ -82,7 +83,7 @@ const Bookmarks: Component = () => {
const kind = () => store.kind || 'notes';

const fetchBookmarks = (pubkey: string | undefined, until = 0) => {
if (store.fetchingInProgress || !pubkey) return;
if (!pubkey) return;

const subId = `bookmark_feed_${until}_${APP_ID}`;

Expand Down Expand Up @@ -112,7 +113,6 @@ const Bookmarks: Component = () => {

const k = kind() === 'reads' ? Kind.LongForm : Kind.Text;

updateStore('fetchingInProgress', () => true);
getUserFeed(pubkey, pubkey, subId, 'bookmarks', k, until, pageSize, store.offset);
}

Expand Down

0 comments on commit 71a0c61

Please sign in to comment.