Remove legacy field

This commit is contained in:
kwaroran
2024-04-25 00:30:09 +09:00
parent 413ccc6bfc
commit 3e5b922c8b
3 changed files with 3 additions and 6 deletions

View File

@@ -61,8 +61,8 @@
<div class="text-textcolor2">No Format</div>
{/if}
{#key sorted}
{#each $DataBase.promptTemplate as proompt, i}
<PromptDataItem bind:promptItem={proompt} onRemove={() => {
{#each $DataBase.promptTemplate as prompt, i}
<PromptDataItem bind:promptItem={prompt} onRemove={() => {
let templates = $DataBase.promptTemplate
templates.splice(i, 1)
$DataBase.promptTemplate = templates