From 8c94dfce9e3773fe1ba75657975f926f094c9ec2 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Thu, 5 Aug 2021 09:11:53 -0700 Subject: [PATCH] Time ticket sort update & remove io event logging. --- .../production-list-table.component.jsx | 9 --------- .../time-ticket-list/time-ticket-list.component.jsx | 3 ++- client/src/utils/GraphQLClient.js | 2 +- 3 files changed, 3 insertions(+), 11 deletions(-) diff --git a/client/src/components/production-list-table/production-list-table.component.jsx b/client/src/components/production-list-table/production-list-table.component.jsx index d08c5e7a9..0834cfa19 100644 --- a/client/src/components/production-list-table/production-list-table.component.jsx +++ b/client/src/components/production-list-table/production-list-table.component.jsx @@ -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(() => { diff --git a/client/src/components/time-ticket-list/time-ticket-list.component.jsx b/client/src/components/time-ticket-list/time-ticket-list.component.jsx index e60e7761c..6a7bf6b11 100644 --- a/client/src/components/time-ticket-list/time-ticket-list.component.jsx +++ b/client/src/components/time-ticket-list/time-ticket-list.component.jsx @@ -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) => diff --git a/client/src/utils/GraphQLClient.js b/client/src/utils/GraphQLClient.js index 269fdffe9..5840587e0 100644 --- a/client/src/utils/GraphQLClient.js +++ b/client/src/utils/GraphQLClient.js @@ -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 = {