mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-05 13:21:18 +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);
|
const [progressValue, setProgressValue] = useState(0);
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
if (message.startsWith('/')) {
|
|
||||||
const command = message.split(' ')[0].substring(1);
|
|
||||||
}
|
|
||||||
}, [message]);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!uploading) {
|
if (!uploading) {
|
||||||
setProgressValue(0);
|
setProgressValue(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user