mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 17:28:50 +01:00
This commit is contained in:
parent
07a53f822c
commit
0b410cd505
1 changed files with 3 additions and 3 deletions
|
|
@ -217,7 +217,7 @@ const viewCards = (deckID: string, title: string) => {
|
|||
breadcrumbDocName: true
|
||||
},
|
||||
});
|
||||
getArticle(edit, dialog.element.querySelector(".b3-list-item--focus").getAttribute("data-id"));
|
||||
getArticle(edit, dialog.element.querySelector(".b3-list-item--focus")?.getAttribute("data-id"));
|
||||
const previousElement = dialog.element.querySelector('[data-type="previous"]');
|
||||
const nextElement = dialog.element.querySelector('[data-type="next"]');
|
||||
const listElement = dialog.element.querySelector(".b3-list--background");
|
||||
|
|
@ -242,7 +242,7 @@ const viewCards = (deckID: string, title: string) => {
|
|||
}
|
||||
nextElement.nextElementSibling.nextElementSibling.textContent = `${pageIndex}/${cardsResponse.data.pageCount}`;
|
||||
listElement.innerHTML = renderViewItem(cardsResponse.data.blocks);
|
||||
getArticle(edit, dialog.element.querySelector(".b3-list-item--focus").getAttribute("data-id"));
|
||||
getArticle(edit, dialog.element.querySelector(".b3-list-item--focus")?.getAttribute("data-id"));
|
||||
});
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
|
@ -258,7 +258,7 @@ const viewCards = (deckID: string, title: string) => {
|
|||
}
|
||||
nextElement.nextElementSibling.nextElementSibling.textContent = `${pageIndex}/${cardsResponse.data.pageCount}`;
|
||||
listElement.innerHTML = renderViewItem(cardsResponse.data.blocks);
|
||||
getArticle(edit, dialog.element.querySelector(".b3-list-item--focus").getAttribute("data-id"));
|
||||
getArticle(edit, dialog.element.querySelector(".b3-list-item--focus")?.getAttribute("data-id"));
|
||||
});
|
||||
event.stopPropagation();
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue