refac
This commit is contained in:
@@ -240,6 +240,7 @@
|
|||||||
hidden
|
hidden
|
||||||
on:change={() => {
|
on:change={() => {
|
||||||
console.log(importFiles);
|
console.log(importFiles);
|
||||||
|
if (!importFiles || importFiles.length === 0) return;
|
||||||
|
|
||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
reader.onload = async (event) => {
|
reader.onload = async (event) => {
|
||||||
@@ -390,7 +391,7 @@
|
|||||||
{:else if (prompts ?? []).length !== 0}
|
{:else if (prompts ?? []).length !== 0}
|
||||||
<!-- Before they call, I will answer; while they are yet speaking, I will hear. -->
|
<!-- Before they call, I will answer; while they are yet speaking, I will hear. -->
|
||||||
<div class="gap-2 grid my-2 px-3 lg:grid-cols-2">
|
<div class="gap-2 grid my-2 px-3 lg:grid-cols-2">
|
||||||
{#each prompts as prompt}
|
{#each prompts as prompt (prompt.id)}
|
||||||
<a
|
<a
|
||||||
class=" flex space-x-4 cursor-pointer text-left w-full px-3 py-2.5 dark:hover:bg-gray-850/50 hover:bg-gray-50 transition rounded-2xl"
|
class=" flex space-x-4 cursor-pointer text-left w-full px-3 py-2.5 dark:hover:bg-gray-850/50 hover:bg-gray-50 transition rounded-2xl"
|
||||||
href={`/workspace/prompts/${prompt.id}`}
|
href={`/workspace/prompts/${prompt.id}`}
|
||||||
|
|||||||
Reference in New Issue
Block a user