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]);
|
setMessages((prev) => [...prev, data as Message]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return unsub;
|
return () => { unsub?.(); };
|
||||||
}, [chatId]);
|
}, [chatId]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@ -30,7 +30,7 @@ export default function CreateProjectModal({ onCreated, onClose }: Props) {
|
|||||||
const project = await createProject({
|
const project = await createProject({
|
||||||
name: name.trim(),
|
name: name.trim(),
|
||||||
slug,
|
slug,
|
||||||
description: description.trim() || null,
|
description: description.trim() || undefined,
|
||||||
});
|
});
|
||||||
onCreated(project);
|
onCreated(project);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user