From ce35fd25aca90e9570e6dacfaaf93283eb04175e Mon Sep 17 00:00:00 2001 From: sunhao Date: Sun, 3 Nov 2024 21:34:45 +0800 Subject: [PATCH] * core: refactor executeCommand method in HElement. --- lib/core/src/react/components/h-element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/src/react/components/h-element.ts b/lib/core/src/react/components/h-element.ts index 9a74d49675..a2e8b88f8f 100644 --- a/lib/core/src/react/components/h-element.ts +++ b/lib/core/src/react/components/h-element.ts @@ -133,7 +133,7 @@ export class HElement

extends Component { }); } - executeCommand(context: CommandContext | string, params: unknown[]) { + executeCommand(context: CommandContext | string, params: unknown[] = []) { const {onCommand, commands} = this.props; let result; if (typeof context === 'string') {