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

View file

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