enhance(frontend): improve some caches

This commit is contained in:
syuilo 2023-09-11 14:55:18 +09:00
parent cd6428715e
commit 25e030a707
8 changed files with 23 additions and 68 deletions

View file

@ -32,7 +32,7 @@ export async function getNoteClipMenu(props: {
const appearNote = isRenote ? props.note.renote as Misskey.entities.Note : props.note;
const clips = await clipsCache.fetch(() => os.api('clips/list'));
const clips = await clipsCache.fetch();
return [...clips.map(clip => ({
text: clip.name,
action: () => {