fix: build errors (useEffect cleanup, null→undefined)
All checks were successful
Deploy Web Client / deploy (push) Successful in 34s

This commit is contained in:
Markov 2026-02-22 17:41:47 +01:00
parent 7185a50f57
commit 90deac3246
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ export default function ChatPanel({ projectId }: Props) {
setMessages((prev) => [...prev, data as Message]);
}
});
return unsub;
return () => { unsub?.(); };
}, [chatId]);
useEffect(() => {

View File

@ -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) {