diff options
| author | Outvi V <git@outv.im> | 2025-06-02 09:23:15 +0800 |
|---|---|---|
| committer | Outvi V <git@outv.im> | 2025-06-02 09:23:15 +0800 |
| commit | fc47460ae22a2050aebc1b261090631c06fed5c4 (patch) | |
| tree | bd25dbce9a9a41aa012629e0aa176271a452c29d /packages/frontend/src/components | |
| parent | add spdx header (diff) | |
| download | sharkey-fc47460ae22a2050aebc1b261090631c06fed5c4.tar.gz sharkey-fc47460ae22a2050aebc1b261090631c06fed5c4.tar.bz2 sharkey-fc47460ae22a2050aebc1b261090631c06fed5c4.zip | |
chore: simplify the call
Diffstat (limited to 'packages/frontend/src/components')
| -rw-r--r-- | packages/frontend/src/components/page/page.note.vue | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/frontend/src/components/page/page.note.vue b/packages/frontend/src/components/page/page.note.vue index 3a3c0e4c7b..543e9afdaf 100644 --- a/packages/frontend/src/components/page/page.note.vue +++ b/packages/frontend/src/components/page/page.note.vue @@ -31,10 +31,8 @@ let timeoutId: ReturnType<typeof window.setTimeout> | null = null; onMounted(() => { if (props.block.note == null) return; - timeoutId = window.setTimeout(() => { - retryOnThrottled(() => misskeyApi('notes/show', { noteId: props.block.note })).then(result => { - note.value = result; - }); + timeoutId = window.setTimeout(async () => { + note.value = await retryOnThrottled(() => misskeyApi('notes/show', { noteId: props.block.note })); }, 500 * props.index); // rate limit is 2 reqs per sec }); |