Sfoglia il codice sorgente

fix: can not input R when debug (#18323)

tags/1.3.0
crazywoola 6 mesi fa
parent
commit
b96ecd072a
Nessun account collegato all'indirizzo email del committer

+ 1
- 7
web/app/components/workflow/panel/debug-and-preview/index.tsx Vedi File

@@ -5,7 +5,7 @@ import {
useRef,
useState,
} from 'react'
import { useKeyPress } from 'ahooks'
import { RiCloseLine, RiEqualizer2Line } from '@remixicon/react'
import { useTranslation } from 'react-i18next'
import { useNodes } from 'reactflow'
@@ -48,12 +48,6 @@ const DebugAndPreview = () => {
chatRef.current.handleRestart()
}

useKeyPress('shift.r', () => {
handleRestartChat()
}, {
exactMatch: true,
})

const [panelWidth, setPanelWidth] = useState(420)
const [isResizing, setIsResizing] = useState(false)


Loading…
Annulla
Salva