Skip to content

Commit

Permalink
Fix inertia 1.3.0 types mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
skryukov committed Dec 23, 2024
1 parent d5c7d90 commit c44d21d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ createInertiaApp({

setup({ el, App, props }) {
if (el) {
<%= " // @ts-expect-error 1.3.0 beta contains types mismatch\n" if inertia_resolved_version == Gem::Version.new('1.3.0-beta.2') -%>
<%= " // @ts-expect-error 1.3.0 contains types mismatch\n" if inertia_resolved_version.release == Gem::Version.new('1.3.0') -%>
mount(App, { target: el, props })
} else {
console.error(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ createInertiaApp({

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

0 comments on commit c44d21d

Please sign in to comment.