mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-03 13:19:16 +00:00
Remove unused slash command-related useeffect hook
This commit is contained in:
@@ -69,12 +69,6 @@ function ChatInputArea(props: ChatInputProps) {
|
||||
|
||||
const [progressValue, setProgressValue] = useState(0);
|
||||
|
||||
useEffect(() => {
|
||||
if (message.startsWith('/')) {
|
||||
const command = message.split(' ')[0].substring(1);
|
||||
}
|
||||
}, [message]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!uploading) {
|
||||
setProgressValue(0);
|
||||
|
||||
Reference in New Issue
Block a user