Skip to content

Commit

Permalink
update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-du-car committed Jul 22, 2024
1 parent f97b193 commit 67e2bdd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ROS2RosbagRowItem = (props) => {
let isGreen = (column.id === "process_status" && props.ROS2RosbagRow.process_status === PROCESSING_STATUS.COMPLETED) || (column.id === "upload_status" && props.ROS2RosbagRow.upload_status === UPLOAD_STATUS.COMPLETED);
let isRed = (column.id === "process_status" && props.ROS2RosbagRow.process_status === PROCESSING_STATUS.ERROR) || (column.id === "upload_status" && props.ROS2RosbagRow.upload_status === UPLOAD_STATUS.ERROR);
let createdBy = column.id === "created_by" && props.ROS2RosbagRow?.user?.login !== undefined ? props.ROS2RosbagRow?.user?.login : "NA";
let isLowerCase = column.id === "process_status" || column.id === "upload_status";
let columnsToLowercase = column.id === "process_status" || column.id === "upload_status";
value = column.id === "size" ? calFilesizes(value) : value;
value = column.id === "created_by" ? createdBy : value;
value = column.id === "created_at" ? new Date(value).toLocaleString() : value;
Expand All @@ -63,7 +63,7 @@ const ROS2RosbagRowItem = (props) => {
wordBreak: "break-word",
}}
>
{isLowerCase ? value.toLowerCase() : value}
{columnsToLowercase ? value.toLowerCase() : value}

{column.id === "process_status" && isRed && (
<InfoPopover
Expand Down

0 comments on commit 67e2bdd

Please sign in to comment.