Fixed vehicle and owner pages with transition prevention. BOD-127

This commit is contained in:
Patrick Fic
2020-07-13 16:14:49 -07:00
parent cff21c5bdf
commit e2f7566783
6 changed files with 55 additions and 31 deletions

View File

@@ -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({