修复树节点回调未使用参数
为跨树选择回调参数添加下划线前缀
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user