Skip to content

Commit

Permalink
Make sure swapOptions isn’t undefined to avoid htmx error
Browse files Browse the repository at this point in the history
(Is this a smell of a bigger issue?)
  • Loading branch information
aral committed Mar 16, 2024
1 parent b301536 commit 073c47a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/htmx.js
Original file line number Diff line number Diff line change
Expand Up @@ -1452,7 +1452,7 @@ var htmx = (function() {
})

const doSettle = function() {
settle(settleInfo, swapSpec, swapOptions)
settle(settleInfo, swapSpec, swapOptions || {})
}

maybeDelay(doSettle, swapSpec.settleDelay)
Expand Down

0 comments on commit 073c47a

Please sign in to comment.