Skip to content

Commit

Permalink
Reformat destroy arguments (#349)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfsullivan authored Aug 28, 2023
1 parent beee4d2 commit f9a5a1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/modal.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion resources/js/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ window.LivewireUIModal = () => {
}

if (this.getActiveComponentModalAttribute('destroyOnClose') === true) {
Livewire.dispatch('destroyComponent', this.activeComponent);
Livewire.dispatch('destroyComponent', {id: this.activeComponent});
}

if (skipPreviousModals > 0) {
Expand Down

0 comments on commit f9a5a1f

Please sign in to comment.