修复树节点回调未使用参数

为跨树选择回调参数添加下划线前缀
This commit is contained in:
2026-09-18 16:25:54 +08:00
parent 899a591cda
commit 3371337346
@@ -83,7 +83,7 @@ export function InputSidebar({ input }: { input: UiEditorInputProjection }) {
focusRequest={focusRequest}
treeIdForNode={(nodeId) => treeIdByNodeId.get(nodeId) ?? null}
isNodePreviewVisible={input.isNodePreviewVisible}
onSelectNode={(treeId, nodeId) => {
onSelectNode={(_treeId, nodeId) => {
// react-arborist emits `onSelect` when its controlled `selection`
// prop is updated. Overview navigation updates the selection and
// the status highlight in the same render, so treating that