refactor: Update TriggerData.svelte to fix condition check for output type

This commit is contained in:
kwaroran
2024-05-28 22:55:24 +09:00
parent ca8a5009c0
commit 005c81a582

View File

@@ -277,7 +277,7 @@
</SelectInput>
{#if
(value.type !== 'start' && (effect.type === 'systemprompt' || effect.type === 'stop')) ||
(value.type === 'output' && effect.type === 'sendAIprompt')
(value.type !== 'output' && effect.type === 'sendAIprompt')
}
<span class="text-red-400 text-sm">{language.invaildTriggerEffect}</span>
{/if}