We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 457277a + 41e377c commit 14dbd31Copy full SHA for 14dbd31
components/Render.js
@@ -225,7 +225,11 @@ export class Render {
225
<ul class="bookmark-ul">`;
226
if (data.length > 0) {
227
for (let item of data) {
228
- const category = document.querySelector(`.bookmark .icon-collect[data-id='${item.id}']`).dataset.category
+ let $categoryEle = document.querySelector(`.bookmark .icon-collect[data-id='${item.id}']`)
229
+ if(!$categoryEle){
230
+ continue
231
+ }
232
+ let category = $categoryEle.dataset.category
233
html += await this.createBookmarkItem(item, category)
234
}
235
} else {
0 commit comments