Skip to content

Commit

Permalink
fix error when commandForElement returns null
Browse files Browse the repository at this point in the history
  • Loading branch information
keithamus committed Feb 13, 2025
1 parent a731bbf commit f09762d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions invoker.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@
}

const invokee = source.commandForElement;
if (!invokee) return;
const invokeEvent = new CommandEvent("command", {
command: source.command,
source,
Expand Down

0 comments on commit f09762d

Please sign in to comment.