Skip to content

Commit

Permalink
fix: 🐛 ES-check problem with Optional chaining
Browse files Browse the repository at this point in the history
  • Loading branch information
lastuvka authored and mjancarik committed Oct 25, 2023
1 parent 33f0f52 commit eea274a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-error/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function updateHook(widget, originalUpdate, ...rest) {
export function setErrorInfo(widget, error) {
widget.error.status = error.status;
widget.error.message = error.message;
widget.error.url = error.params?.url;
widget.error.url = error.params && error.params.url;

if (ENV === DEV) {
widget.error.stack = error.stack;
Expand Down

0 comments on commit eea274a

Please sign in to comment.