fix: build errors (useEffect cleanup, null→undefined)
All checks were successful
Deploy Web Client / deploy (push) Successful in 34s
All checks were successful
Deploy Web Client / deploy (push) Successful in 34s
This commit is contained in:
parent
7185a50f57
commit
90deac3246
@ -38,7 +38,7 @@ export default function ChatPanel({ projectId }: Props) {
|
||||
setMessages((prev) => [...prev, data as Message]);
|
||||
}
|
||||
});
|
||||
return unsub;
|
||||
return () => { unsub?.(); };
|
||||
}, [chatId]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
@ -30,7 +30,7 @@ export default function CreateProjectModal({ onCreated, onClose }: Props) {
|
||||
const project = await createProject({
|
||||
name: name.trim(),
|
||||
slug,
|
||||
description: description.trim() || null,
|
||||
description: description.trim() || undefined,
|
||||
});
|
||||
onCreated(project);
|
||||
} catch (err) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user