Skip to content

Commit

Permalink
Fixing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed May 22, 2024
1 parent f291e01 commit 7da05ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Webform.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export default class Webform extends NestedDataComponent {
let element, formOptions;
if (elementOrOptions instanceof HTMLElement || options) {
element = elementOrOptions;
formOptions = options;
formOptions = options || {};
} else {
formOptions = elementOrOptions || {};
}
Expand Down
2 changes: 1 addition & 1 deletion src/Wizard.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class Wizard extends Webform {
let element, options;
if (elementOrOptions instanceof HTMLElement || options) {
element = elementOrOptions;
options = _options;
options = _options || {};
} else {
options = elementOrOptions || {};
}
Expand Down

0 comments on commit 7da05ac

Please sign in to comment.