Time ticket sort update & remove io event logging.

This commit is contained in:
Patrick Fic
2021-08-05 09:11:53 -07:00
parent 69c13dd052
commit 8c94dfce9e
3 changed files with 3 additions and 11 deletions

View File

@@ -38,10 +38,6 @@ export function ProductionListTable({
);
return assoc && assoc.default_prod_list_view;
}, [bodyshop.associations, currentUser.email]);
console.log(
"🚀 ~ file: production-list-table.component.jsx ~ line 41 ~ defaultView",
defaultView
);
const [state, setState] = useState(
(bodyshop.production_config &&
@@ -52,12 +48,7 @@ export function ProductionListTable({
filteredInfo: { text: "" },
}
);
console.log(
"🚀 ~ file: production-list-table.component.jsx ~ line 51 ~ bodyshop.production_config",
bodyshop.production_config
);
console.log("state", state);
const { t } = useTranslation();
const matchingColumnConfig = useMemo(() => {

View File

@@ -105,7 +105,8 @@ export function TimeTicketList({
title: t("jobs.fields.ro_number"),
dataIndex: "ro_number",
key: "ro_number",
sorter: (a, b) => alphaSort(a.job.ro_number, b.job.ro_number),
sorter: (a, b) =>
alphaSort(a.job && a.job.ro_number, b.job && b.job.ro_number),
sortOrder:
state.sortedInfo.columnKey === "ro_number" && state.sortedInfo.order,
render: (text, record) =>

View File

@@ -48,7 +48,7 @@ const roundTripLink = new ApolloLink((operation, forward) => {
});
const TrackExecutionTime = async (operationName, time) => {
await axios.post("/ioevent", { operationName, time, dbevent: true });
//await axios.post("/ioevent", { operationName, time, dbevent: true });
};
const subscriptionMiddleware = {