Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: missing prop key (#1291)

远浅54374bca0572
diff --git a/web/src/labs/marked/parser/Br.tsx b/web/src/labs/marked/parser/Br.tsx
index 9bd80ba8c..b6a1a3a26 100644
--- a/web/src/labs/marked/parser/Br.tsx
+++ b/web/src/labs/marked/parser/Br.tsx
@@ -4,7 +4,7 @@ const renderer = (rawStr: string) => {
const length = rawStr.split("\n").length - 1;
const brList = [];
for (let i = 0; i < length; i++) {
- brList.push(<br />);
+ brList.push(<br key={i} />);
}
return <>{...brList}</>;
};