Skip to content

Commit

Permalink
Fix class name evaluated by short circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
haecheonlee committed Apr 12, 2024
1 parent 217b7e8 commit eadcff0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/EditorCanvas/Table.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function Table(props) {
.getElementById(`scroll_table_${tableData.id}`)
.scrollIntoView({ behavior: "smooth" });
}
}
};

return (
<>
Expand Down Expand Up @@ -260,7 +260,9 @@ export default function Table(props) {
return (
<div
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`}
onMouseEnter={() => {
setHoveredField(index);
Expand Down

0 comments on commit eadcff0

Please sign in to comment.