Skip to content

Commit ffe87e5

Browse files
committed
fix: lint fix
1 parent c8b2c92 commit ffe87e5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/OptionList.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,15 +175,15 @@ const OptionList: React.ForwardRefRenderFunction<ReviseRefOptionListProps> = (_,
175175
resetCache();
176176
}, [checkedKeys, maxCount]);
177177

178-
const getSelectableKeys = (targetNode: DataNode, fieldNames: FieldNames): Key[] => {
179-
const keys = [targetNode[fieldNames.value]];
178+
const getSelectableKeys = (targetNode: DataNode, names: FieldNames): Key[] => {
179+
const keys = [targetNode[names.value]];
180180
if (!Array.isArray(targetNode.children)) {
181181
return keys;
182182
}
183183

184184
return targetNode.children.reduce((acc, child) => {
185185
if (!child.disabled) {
186-
acc.push(...getSelectableKeys(child, fieldNames));
186+
acc.push(...getSelectableKeys(child, names));
187187
}
188188
return acc;
189189
}, keys);

src/TreeSelectContext.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as React from 'react';
22
import type { ExpandAction } from 'rc-tree/lib/Tree';
3-
import type { DataNode, FieldNames, Key, LabeledValueType } from './interface';
3+
import type { DataNode, FieldNames, Key } from './interface';
44
import { CheckedStrategy } from './utils/strategyUtil';
55

66
export interface TreeSelectContextProps {

0 commit comments

Comments
 (0)