Fix class name evaluated by short circuit

This commit is contained in:
haecheonlee 2024-04-11 20:11:33 -04:00
parent 217b7e8234
commit eadcff091a

View File

@ -53,7 +53,7 @@ export default function Table(props) {
.getElementById(`scroll_table_${tableData.id}`) .getElementById(`scroll_table_${tableData.id}`)
.scrollIntoView({ behavior: "smooth" }); .scrollIntoView({ behavior: "smooth" });
} }
} };
return ( return (
<> <>
@ -260,7 +260,9 @@ export default function Table(props) {
return ( return (
<div <div
className={`${ className={`${
index === tableData.fields.length - 1 || "border-b border-gray-400" index === tableData.fields.length - 1
? ""
: "border-b border-gray-400"
} group h-[36px] px-2 py-1 flex justify-between items-center gap-1 w-full overflow-hidden`} } group h-[36px] px-2 py-1 flex justify-between items-center gap-1 w-full overflow-hidden`}
onMouseEnter={() => { onMouseEnter={() => {
setHoveredField(index); setHoveredField(index);