This commit is contained in:
Mary Hipp 2023-07-07 11:44:58 -04:00
parent 2933d81118
commit d9acb0eea6

View File

@ -101,6 +101,8 @@ const ParamPositiveConditioning = () => {
[dispatch, onClose, prompt] [dispatch, onClose, prompt]
); );
const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled;
const handleKeyDown = useCallback( const handleKeyDown = useCallback(
(e: KeyboardEvent<HTMLTextAreaElement>) => { (e: KeyboardEvent<HTMLTextAreaElement>) => {
if (e.key === 'Enter' && e.shiftKey === false && isReady) { if (e.key === 'Enter' && e.shiftKey === false && isReady) {
@ -115,8 +117,6 @@ const ParamPositiveConditioning = () => {
[isReady, dispatch, activeTabName, onOpen, isTiEmbeddingEnabled] [isReady, dispatch, activeTabName, onOpen, isTiEmbeddingEnabled]
); );
const isTiEmbeddingEnabled = useFeatureStatus('tiEmbedding').isFeatureEnabled;
// const handleSelect = (e: MouseEvent<HTMLTextAreaElement>) => { // const handleSelect = (e: MouseEvent<HTMLTextAreaElement>) => {
// const target = e.target as HTMLTextAreaElement; // const target = e.target as HTMLTextAreaElement;
// setCaret({ start: target.selectionStart, end: target.selectionEnd }); // setCaret({ start: target.selectionStart, end: target.selectionEnd });