{ if (webSearchMessages.length === 0 && webSearchId) { fetch(`${base}/search/${webSearchId}`) .then((res) => res.json()) .then((res) => { webSearchMessages = [...res.messages, { type: "result", id: webSearchId }]; }) .catch((err) => console.log(err)); } }} bind:open={detailsOpen} > {#if error} {:else if loading} {:else} {/if} Web search
{#if webSearchMessages.length === 0}
{:else}
    {#each webSearchMessages as message} {#if message.type === "update"}
  1. {message.message}

    {#if message.args}

    {message.args}

    {/if}
  2. {:else if message.type === "error"}
  3. {message.message}

    {#if message.args}

    {message.args}

    {/if}
  4. {/if} {/each}
{/if}