|
|
@ -25,7 +25,6 @@ |
|
|
} else { |
|
|
} else { |
|
|
throw new Error("Failed to fetch records.", response) |
|
|
throw new Error("Failed to fetch records.", response) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
$: if (model) fetchData() |
|
|
$: if (model) fetchData() |
|
|
@ -36,8 +35,7 @@ |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<section class:grid={layout === 'grid'} class:list={layout === 'list'}> |
|
|
<section class:grid={layout === 'grid'} class:list={layout === 'list'}> |
|
|
<div class="data-card" bind:this={target}> |
|
|
<div class="data-card" bind:this={target} /> |
|
|
</div> |
|
|
|
|
|
</section> |
|
|
</section> |
|
|
|
|
|
|
|
|
<style> |
|
|
<style> |
|
|
|