diff --git a/src/addons/AddOnPin.svelte b/src/addons/AddOnPin.svelte index 0a9027f31..a6114cd96 100644 --- a/src/addons/AddOnPin.svelte +++ b/src/addons/AddOnPin.svelte @@ -1,6 +1,6 @@ diff --git a/src/addons/browser/AddOnList.svelte b/src/addons/browser/AddOnList.svelte index b4ee58bf3..da65f3d1c 100644 --- a/src/addons/browser/AddOnList.svelte +++ b/src/addons/browser/AddOnList.svelte @@ -1,13 +1,3 @@ - - - diff --git a/src/addons/runs/Scheduled.svelte b/src/addons/runs/Scheduled.svelte index db3034548..2aecddb73 100644 --- a/src/addons/runs/Scheduled.svelte +++ b/src/addons/runs/Scheduled.svelte @@ -7,7 +7,8 @@ import Error from "../../common/icons/Error.svelte"; import Loader from "../../common/Loader.svelte"; import Paginator from "../../common/Paginator.svelte"; - import ScheduledEvent, { type Event } from "./ScheduledEvent.svelte"; + import ScheduledEvent from "./ScheduledEvent.svelte"; + import type { Event } from "../types"; import { baseApiUrl } from "../../api/base.js"; @@ -29,7 +30,7 @@ $: next_url = res.next ? new URL(res.next) : null; $: prev_url = res.previous ? new URL(res.previous) : null; $: events = res.results ?? []; - $: empty = !loading && res.results?.length === 0; + $: empty = !loading && !Boolean(res.results?.length) && !error; export async function load(url?: string | URL) { try { diff --git a/src/addons/runs/ScheduledEvent.svelte b/src/addons/runs/ScheduledEvent.svelte index 08f751dc7..f39654eaf 100644 --- a/src/addons/runs/ScheduledEvent.svelte +++ b/src/addons/runs/ScheduledEvent.svelte @@ -1,16 +1,5 @@