From d48edf678a9968423f249f0d5ea30d83a67480eb Mon Sep 17 00:00:00 2001 From: das31 <31259710+das31@users.noreply.github.com> Date: Mon, 24 Apr 2023 18:08:49 -0400 Subject: [PATCH] CEC-4066-dtc-error-text-fix (#318) * CEC-4066-dtc-error-text-fix * CEC-4066-dtc-error-text-fix * remove error text column check: --- src/components/DTCTimeline/DTCTimeline/index.jsx | 3 ++- src/components/Table/HeaderSortable/index.jsx | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/DTCTimeline/DTCTimeline/index.jsx b/src/components/DTCTimeline/DTCTimeline/index.jsx index 49b3417..c632d36 100644 --- a/src/components/DTCTimeline/DTCTimeline/index.jsx +++ b/src/components/DTCTimeline/DTCTimeline/index.jsx @@ -50,7 +50,8 @@ const MainForm = ({ vin }) => { }, { id: "ErrorText", - label: "Error Text" + label: "Error Text", + no_sort : true, }, { id: "epoch_usec", diff --git a/src/components/Table/HeaderSortable/index.jsx b/src/components/Table/HeaderSortable/index.jsx index 2b297e8..c0b0b4a 100644 --- a/src/components/Table/HeaderSortable/index.jsx +++ b/src/components/Table/HeaderSortable/index.jsx @@ -35,6 +35,9 @@ const HeaderSortable = (props) => { value === "desc" ? "sorted descending" : "sorted ascending"; const ColumnLabel = (column) => { + if (column.no_sort) { + return column.label + } if (column.id) { return (