Skip to content

Commit c44d21d

Browse files
committed
Fix inertia 1.3.0 types mismatch
1 parent d5c7d90 commit c44d21d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/generators/inertia/install/templates/svelte/inertia.ts.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ createInertiaApp({
3232

3333
setup({ el, App, props }) {
3434
if (el) {
35-
<%= " // @ts-expect-error 1.3.0 beta contains types mismatch\n" if inertia_resolved_version == Gem::Version.new('1.3.0-beta.2') -%>
35+
<%= " // @ts-expect-error 1.3.0 contains types mismatch\n" if inertia_resolved_version.release == Gem::Version.new('1.3.0') -%>
3636
mount(App, { target: el, props })
3737
} else {
3838
console.error(

lib/generators/inertia/install/templates/svelte4/inertia.ts.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ createInertiaApp({
3131

3232
setup({ el, App, props }) {
3333
if (el) {
34-
<%= "// @ts-expect-error 1.3.0 beta contains types mismatch\n" if inertia_resolved_version == Gem::Version.new('1.3.0-beta.2') -%>
34+
<%= "// @ts-expect-error 1.3.0 beta contains types mismatch\n" if inertia_resolved_version.release == Gem::Version.new('1.3.0') -%>
3535
new App({ target: el, props })
3636
} else {
3737
console.error(

0 commit comments

Comments
 (0)