diff --git a/src/idiomorph-htmx.js b/src/idiomorph-htmx.js index 4cac7c0..386e910 100644 --- a/src/idiomorph-htmx.js +++ b/src/idiomorph-htmx.js @@ -12,7 +12,7 @@ htmx.defineExtension('morph', { isInlineSwap: function(swapStyle) { let config = createMorphConfig(swapStyle); - return config.swapStyle === "outerHTML" || config.swapStyle == null; + return config?.morphStyle === "outerHTML" || config?.morphStyle == null; }, handleSwap: function (swapStyle, target, fragment) { let config = createMorphConfig(swapStyle);