From d0d695c0202e198f469c526bc6abbf89e7b579ff Mon Sep 17 00:00:00 2001 From: Mary Hipp Date: Tue, 12 Mar 2024 20:24:11 -0400 Subject: [PATCH] disable trigger phrase form if empty --- .../modelManagerV2/subpanels/ModelPanel/TriggerPhrases.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/TriggerPhrases.tsx b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/TriggerPhrases.tsx index c10f3610c7..a2e699c7d9 100644 --- a/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/TriggerPhrases.tsx +++ b/invokeai/frontend/web/src/features/modelManagerV2/subpanels/ModelPanel/TriggerPhrases.tsx @@ -90,7 +90,7 @@ export const TriggerPhrases = () => { size="sm" type="submit" onClick={addTriggerPhrase} - isDisabled={Boolean(errors.length)} + isDisabled={!phrase || Boolean(errors.length)} isLoading={isLoading} > {t('common.add')}