update case index page segment index and show page
This commit is contained in:
@@ -441,12 +441,18 @@ function doServerRequest(overrides = {}) {
|
||||
});
|
||||
|
||||
const url = route(props.routeName, props.routeParams || {});
|
||||
router.get(url, q, {
|
||||
const onlyProps = Array.isArray(props.onlyProps) ? props.onlyProps : [];
|
||||
const inertiaOptions = {
|
||||
preserveScroll: props.preserveScroll,
|
||||
preserveState: props.preserveState,
|
||||
replace: true,
|
||||
only: props.onlyProps.length ? props.onlyProps : undefined,
|
||||
});
|
||||
};
|
||||
|
||||
if (onlyProps.length > 0) {
|
||||
inertiaOptions.only = onlyProps;
|
||||
}
|
||||
|
||||
router.get(url, q, inertiaOptions);
|
||||
}
|
||||
|
||||
// Row key helper
|
||||
|
||||
Reference in New Issue
Block a user