Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
honkinglin committed Sep 25, 2024
1 parent 40816b0 commit 10c21b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/tree-v1/tree-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ export class TreeNode {
private async loadChildren(): Promise<void> {
const config = get(this, 'tree.config') || {};
if (this.children === true && !this.loading) {
if (isFunction(config.load)) {
if ('load' in config && isFunction(config.load)) {
this.loading = true;
this.update();
let list = [];
Expand Down

0 comments on commit 10c21b3

Please sign in to comment.