Skip to content

Commit

Permalink
chore: revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Dec 19, 2024
1 parent 2cb5eb5 commit 0a28d66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/date-picker/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ export function flagActive(data: any[], { ...args }: FlagActiveOptions) {
const _item = item;

if (multiple) {
_item.active = (value as DateValue[]).some((val) => isSame(dayjs(val).toDate(), _item.value, type) && !_item.additional);
_item.active = (value as DateValue[])?.some?.((val) => isSame(dayjs(val).toDate(), _item.value, type) && !_item.additional);
} else {
_item.active = start && isSame(item.value, start, type) && !_item.additional;
}
Expand Down
2 changes: 1 addition & 1 deletion js/tree-v1/tree-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,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 0a28d66

Please sign in to comment.