mirror of
https://github.com/usememos/memos.git
synced 2024-12-18 16:41:44 +03:00
chore: fix decouple user name
This commit is contained in:
parent
0ea0645258
commit
c288d49138
@ -35,7 +35,7 @@ const MemoDetail = () => {
|
||||
const { systemStatus } = globalStore.state;
|
||||
const memoId = Number(params.memoId);
|
||||
const memo = memoStore.state.memos.find((memo) => memo.id === memoId);
|
||||
const allowEdit = memo?.creatorUsername === extractUsernameFromName(currentUser.name);
|
||||
const allowEdit = memo?.creatorUsername === extractUsernameFromName(currentUser?.name);
|
||||
const referenceRelations = memo?.relationList.filter((relation) => relation.type === "REFERENCE") || [];
|
||||
const commentRelations = memo?.relationList.filter((relation) => relation.relatedMemoId === memo.id && relation.type === "COMMENT") || [];
|
||||
const comments = commentRelations
|
||||
|
Loading…
Reference in New Issue
Block a user