diff --git a/invokeai/frontend/web/src/features/parameters/components/Parameters/Core/ParamPositiveConditioning.tsx b/invokeai/frontend/web/src/features/parameters/components/Parameters/Core/ParamPositiveConditioning.tsx index a41be1e19c..fd24f0ba23 100644 --- a/invokeai/frontend/web/src/features/parameters/components/Parameters/Core/ParamPositiveConditioning.tsx +++ b/invokeai/frontend/web/src/features/parameters/components/Parameters/Core/ParamPositiveConditioning.tsx @@ -101,6 +101,8 @@ const ParamPositiveConditioning = () => { [dispatch, onClose, prompt] ); + const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled; + const handleKeyDown = useCallback( (e: KeyboardEvent) => { if (e.key === 'Enter' && e.shiftKey === false && isReady) { @@ -115,8 +117,6 @@ const ParamPositiveConditioning = () => { [isReady, dispatch, activeTabName, onOpen, isTiEmbeddingEnabled] ); - const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled; - // const handleSelect = (e: MouseEvent) => { // const target = e.target as HTMLTextAreaElement; // setCaret({ start: target.selectionStart, end: target.selectionEnd });