Fix class name evaluated by short circuit
This commit is contained in:
parent
217b7e8234
commit
eadcff091a
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user