1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-30 18:03:59 +02:00

fix type errors

This commit is contained in:
syuilo
2025-07-05 17:13:29 +09:00
parent cc4cdd1ec0
commit f128682200
9 changed files with 14 additions and 9 deletions

View File

@@ -62,24 +62,29 @@ function fetchList(): void {
}
function like() {
if (list.value == null) return;
os.apiWithDialog('users/lists/favorite', {
listId: list.value.id,
}).then(() => {
if (list.value == null) return;
list.value.isLiked = true;
list.value.likedCount++;
});
}
function unlike() {
if (list.value == null) return;
os.apiWithDialog('users/lists/unfavorite', {
listId: list.value.id,
}).then(() => {
if (list.value == null) return;
list.value.isLiked = false;
list.value.likedCount--;
});
}
async function create() {
if (list.value == null) return;
const { canceled, result: name } = await os.inputText({
title: i18n.ts.enterListName,
});