mirror of
https://github.com/usememos/memos.git
synced 2024-12-24 03:33:52 +03:00
chore: remove debug codes
This commit is contained in:
parent
834b58fbbd
commit
5e4493b227
@ -28,7 +28,6 @@ const VersionUpdateMessage = ({ inbox }: Props) => {
|
||||
id: inbox.activityId,
|
||||
})
|
||||
.then(({ activity }) => {
|
||||
console.log("activity", activity);
|
||||
setActivity(activity);
|
||||
});
|
||||
}, [inbox.activityId]);
|
||||
|
@ -42,7 +42,7 @@ const Memo: React.FC<Props> = (props: Props) => {
|
||||
const [shouldRender, setShouldRender] = useState<boolean>(lazyRendering ? false : true);
|
||||
const [displayTime, setDisplayTime] = useState<string>(getRelativeTimeString(memo.displayTs));
|
||||
const memoContainerRef = useRef<HTMLDivElement>(null);
|
||||
const readonly = memo.creatorUsername !== extractUsernameFromName(user?.name);
|
||||
const readonly = memo.creatorUsername !== extractUsernameFromName(user?.name || "");
|
||||
const [creator, setCreator] = useState(userV1Store.getUserByUsername(memo.creatorUsername));
|
||||
const referenceRelations = memo.relationList.filter((relation) => relation.type === "REFERENCE");
|
||||
const commentRelations = memo.relationList.filter((relation) => relation.relatedMemoId === memo.id && relation.type === "COMMENT");
|
||||
|
@ -28,8 +28,6 @@ const RelationListView = (props: Props) => {
|
||||
setRelationList(relationList.filter((relation) => relation.relatedMemoId !== memo.id));
|
||||
};
|
||||
|
||||
console.log("referencingMemoList", referencingMemoList);
|
||||
|
||||
return (
|
||||
<>
|
||||
{referencingMemoList.length > 0 && (
|
||||
|
@ -22,7 +22,7 @@ const MemoList: React.FC = () => {
|
||||
const user = useCurrentUser();
|
||||
const { tag: tagQuery, duration, text: textQuery, visibility } = filter;
|
||||
const showMemoFilter = Boolean(tagQuery || (duration && duration.from < duration.to) || textQuery || visibility);
|
||||
const username = params.username || extractUsernameFromName(user.name) || "";
|
||||
const username = params.username || extractUsernameFromName(user.name || "");
|
||||
|
||||
const fetchMoreRef = useRef<HTMLSpanElement>(null);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user