Skip to content

Commit

Permalink
* core: refactor executeCommand method in HElement.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Nov 3, 2024
1 parent 6e24823 commit ce35fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/src/react/components/h-element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class HElement<P extends HElementProps, S = {}> extends Component<P, S> {
});
}

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

0 comments on commit ce35fd2

Please sign in to comment.