diff options
author | 2025-02-12 11:24:07 -0500 | |
---|---|---|
committer | 2025-02-12 11:24:07 -0500 | |
commit | abc64e2dffe1baa5c77e6eb8238a9a756bc4549e (patch) | |
tree | 39037b18e4bdb43b76d2bc70e9ec137800b511ee | |
parent | 280f1b733834767b25c3b302dc318a5437851f49 (diff) |
messages null check
-rw-r--r-- | api/forum.db | bin | 20480 -> 20480 bytes | |||
-rw-r--r-- | src/components/notes.jsx | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/api/forum.db b/api/forum.db Binary files differindex 89ba061..ef88bf9 100644 --- a/api/forum.db +++ b/api/forum.db diff --git a/src/components/notes.jsx b/src/components/notes.jsx index d1bc454..11f28af 100644 --- a/src/components/notes.jsx +++ b/src/components/notes.jsx @@ -5,7 +5,7 @@ import { AppContext } from "../App"; export default function Notes() { const { messages } = useContext(AppContext); return (<> - {messages.map((chatbubble) => { + {messages && messages.map((chatbubble) => { return <ChatBubble key={chatbubble.message_id} id={chatbubble.message_id} position={chatbubble.position} text={chatbubble.message}/>; })} </>); |