fix(memhub): satisfy full lint gate

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
kristinheandCursor committed 2026-10-27 23:51:51 +08:00
1 parent a70830970d
commit 3e8a006f65
2 files changed
+5 -6

No files matched your search

+1 -2
View File
@@ -941,8 +941,7 @@ export function MemoryMap(props: Props) {
title={text("下一页记忆")}
disabled={
library.loading ||
library.page.offset + library.page.limit >=
library.page.total
library.page.offset + library.page.limit >= library.page.total
}
onClick={() => {
if (axis === "topic") setGroupKey("");
+4 -4
View File
@@ -82,10 +82,6 @@ export function OptionMenu(props: {
<div
className={["om-option-menu", props.className].filter(Boolean).join(" ")}
ref={root}
onBlur={(event) => {
if (!event.currentTarget.contains(event.relatedTarget as Node | null))
setOpen(false);
}}
>
<button
ref={button}
@@ -108,6 +104,10 @@ export function OptionMenu(props: {
: undefined
}
disabled={props.disabled}
onBlur={(event) => {
if (!root.current?.contains(event.relatedTarget as Node | null))
setOpen(false);
}}
onClick={() => {
if (preferredIndex < 0) return;
setActiveIndex(preferredIndex);