protonemedia / inertiajs-tables-laravel-query-builder

Inertia.js Tables for Laravel Query Builder
https://protone.media/en/blog/introducing-inertiajs-tables-a-datatables-like-package-for-laravel-query-builder
MIT License
438 stars 130 forks source link

Vue component doesn't work when route has parameters #5

Closed eorenstein1 closed 3 years ago

eorenstein1 commented 3 years ago

The Vue component throws an error when used on a route with parameters. For example, say you were using the table on the route example.com/users/1/tasks. When you update any of the filters or search fields and it updates the route with the new query string, it would throw the error Error: Ziggy error: 'user' parameter is required for route 'tasks'.

henriquecm commented 3 years ago

I tried overriding some methods but nothing seems to work, but pagination still works

pascalbaljet commented 3 years ago

Fixed in v1.1.1 😀

eorenstein1 commented 3 years ago

Thanks for the quick fix!