inertiax-svelte 2.1.6 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/Frame.svelte +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inertiax-svelte",
3
- "version": "2.1.6",
3
+ "version": "2.1.7",
4
4
  "license": "MIT",
5
5
  "description": "The Svelte adapter for Inertia.js",
6
6
  "contributors": [
package/src/Frame.svelte CHANGED
@@ -21,8 +21,8 @@
21
21
  <div data-inertia-frame-id={id}>
22
22
  {#if components}
23
23
  <Render {...components} />
24
- {:else if children()}
25
- {@render children()}
24
+ {:else}
25
+ {@render children?.()}
26
26
  {/if}
27
27
  </div>
28
28