refactor(workspaces): normalize workspace bootstrap and edit flows

This commit is contained in:
2026-04-24 22:22:28 +03:30
parent dfe280d9a1
commit 790e5f1dba
6 changed files with 199 additions and 207 deletions

View File

@@ -54,7 +54,7 @@ export default function WorkspaceCreate() {
const [isDeleteDialogOpen, setIsDeleteDialogOpen] = useState(false);
const [memberIdToDelete, setMemberIdToDelete] = useState<string | null>(null);
const searchTimeoutRef = useRef<NodeJS.Timeout>();
const searchTimeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
const hasUnsavedChanges = name.trim() !== '' || description.trim() !== '' || members.length > 0;
useEffect(() => {