This repository was archived by the owner on Jun 27, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -209,15 +209,21 @@ import isEqual from "lodash-es/isEqual";
209209import map from " lodash-es/map" ;
210210import pickBy from " lodash-es/pickBy" ;
211211
212- const app = getCurrentInstance ()
213- const $inertia = app .appContext .config .globalProperties .$inertia ;
214-
215212const props = defineProps ({
213+ inertia: {
214+ type: Object ,
215+ default : () => {
216+ return {};
217+ },
218+ required: false ,
219+ },
220+
216221 name: {
217222 type: String ,
218223 default: " default" ,
219224 required: false ,
220225 },
226+
221227 striped: {
222228 type: Boolean ,
223229 default: false ,
@@ -267,6 +273,9 @@ const props = defineProps({
267273 },
268274});
269275
276+ const app = getCurrentInstance ()
277+ const $inertia = app ? app .appContext .config .globalProperties .$inertia : props .inertia ;
278+
270279const updates = ref (0 )
271280
272281const queryBuilderProps = computed (() => {
Original file line number Diff line number Diff line change 11{
22 "name" : " @protonemedia/inertiajs-tables-laravel-query-builder" ,
3- "version" : " 2.0.0 " ,
3+ "version" : " 2.0.1 " ,
44 "description" : " Inertia.js Front-end Components for Spatie's Laravel Query Builder" ,
55 "author" : " Pascal Baljet <pascal@protone.media>" ,
66 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments