Time ticket sort update & remove io event logging.
This commit is contained in:
@@ -38,10 +38,6 @@ export function ProductionListTable({
|
|||||||
);
|
);
|
||||||
return assoc && assoc.default_prod_list_view;
|
return assoc && assoc.default_prod_list_view;
|
||||||
}, [bodyshop.associations, currentUser.email]);
|
}, [bodyshop.associations, currentUser.email]);
|
||||||
console.log(
|
|
||||||
"🚀 ~ file: production-list-table.component.jsx ~ line 41 ~ defaultView",
|
|
||||||
defaultView
|
|
||||||
);
|
|
||||||
|
|
||||||
const [state, setState] = useState(
|
const [state, setState] = useState(
|
||||||
(bodyshop.production_config &&
|
(bodyshop.production_config &&
|
||||||
@@ -52,12 +48,7 @@ export function ProductionListTable({
|
|||||||
filteredInfo: { text: "" },
|
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 { t } = useTranslation();
|
||||||
|
|
||||||
const matchingColumnConfig = useMemo(() => {
|
const matchingColumnConfig = useMemo(() => {
|
||||||
|
|||||||
@@ -105,7 +105,8 @@ export function TimeTicketList({
|
|||||||
title: t("jobs.fields.ro_number"),
|
title: t("jobs.fields.ro_number"),
|
||||||
dataIndex: "ro_number",
|
dataIndex: "ro_number",
|
||||||
key: "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:
|
sortOrder:
|
||||||
state.sortedInfo.columnKey === "ro_number" && state.sortedInfo.order,
|
state.sortedInfo.columnKey === "ro_number" && state.sortedInfo.order,
|
||||||
render: (text, record) =>
|
render: (text, record) =>
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ const roundTripLink = new ApolloLink((operation, forward) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const TrackExecutionTime = async (operationName, time) => {
|
const TrackExecutionTime = async (operationName, time) => {
|
||||||
await axios.post("/ioevent", { operationName, time, dbevent: true });
|
//await axios.post("/ioevent", { operationName, time, dbevent: true });
|
||||||
};
|
};
|
||||||
|
|
||||||
const subscriptionMiddleware = {
|
const subscriptionMiddleware = {
|
||||||
|
|||||||
Reference in New Issue
Block a user