Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

EYHN8b28761a8ac6
diff --git a/packages/frontend/core/src/components/affine/new-workspace-setting-detail/profile.tsx b/packages/frontend/core/src/components/affine/new-workspace-setting-detail/profile.tsx
index eed6fea1d5..f9a7629cce 100644
--- a/packages/frontend/core/src/components/affine/new-workspace-setting-detail/profile.tsx
+++ b/packages/frontend/core/src/components/affine/new-workspace-setting-detail/profile.tsx
@@ -14,7 +14,6 @@ import { useSetAtom } from 'jotai';
import {
type KeyboardEvent,
type MouseEvent,
- startTransition,
useCallback,
useEffect,
useState,
@@ -119,9 +118,7 @@ export const ProfilePanel = ({ isOwner, workspace }: ProfilePanelProps) => {
);
const handleSetInput = useCallback((value: string) => {
- startTransition(() => {
- setInput(value);
- });
+ setInput(value);
}, []);
const handleKeyUp = useCallback(