fix drafts list

This commit is contained in:
Henry Jameson 2026-06-10 14:57:05 +03:00
commit 86132515ce
2 changed files with 4 additions and 2 deletions

View file

@ -15,7 +15,7 @@
</div>
<template v-else>
<List
:items="drafts"
:external-items="drafts"
:non-interactive="true"
>
<template #item="{ item: draft }">
@ -58,6 +58,7 @@
.Drafts {
.draft {
margin: 1em 0;
width: 100%;
}
.remove-all {

View file

@ -78,7 +78,8 @@ const List = {
created() {
window.addEventListener('scroll', this.scrollLoad)
if (this.items.length === 0) {
console.log(this.externalItems)
if (!this.externalItems && this.items.length === 0) {
this.fetchEntries()
}
},