fix(component): fix workspace input (#5381)

This commit is contained in:
EYHN
2023-12-22 16:26:14 +08:00
committed by GitHub
parent 77d239ff81
commit 8b28761a8a

View File

@@ -14,7 +14,6 @@ import { useSetAtom } from 'jotai';
import { import {
type KeyboardEvent, type KeyboardEvent,
type MouseEvent, type MouseEvent,
startTransition,
useCallback, useCallback,
useEffect, useEffect,
useState, useState,
@@ -119,9 +118,7 @@ export const ProfilePanel = ({ isOwner, workspace }: ProfilePanelProps) => {
); );
const handleSetInput = useCallback((value: string) => { const handleSetInput = useCallback((value: string) => {
startTransition(() => { setInput(value);
setInput(value);
});
}, []); }, []);
const handleKeyUp = useCallback( const handleKeyUp = useCallback(