Fixed vehicle and owner pages with transition prevention. BOD-127
This commit is contained in:
@@ -4,8 +4,6 @@ import queryString from "query-string";
|
||||
import React, { useState } from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { Link, useHistory, useLocation } from "react-router-dom";
|
||||
import { alphaSort } from "../../utils/sorters";
|
||||
|
||||
export default function VehiclesListComponent({
|
||||
loading,
|
||||
vehicles,
|
||||
@@ -13,7 +11,10 @@ export default function VehiclesListComponent({
|
||||
refetch,
|
||||
}) {
|
||||
const search = queryString.parse(useLocation().search);
|
||||
const { page, sortcolumn, sortorder } = search;
|
||||
const {
|
||||
page,
|
||||
//sortcolumn, sortorder
|
||||
} = search;
|
||||
const history = useHistory();
|
||||
|
||||
const [state, setState] = useState({
|
||||
|
||||
Reference in New Issue
Block a user