refactor(GenericNode): simplify conditional class assignment for the … (#1206)
…div element in the GenericNode component
This commit is contained in:
commit
1a4e4f502a
1 changed files with 3 additions and 4 deletions
|
|
@ -364,10 +364,9 @@ export default function GenericNode({
|
|||
<div
|
||||
className={
|
||||
showNode
|
||||
? "overflow-hidden " +
|
||||
(data.node?.description === "" && !nameEditable
|
||||
? "pb-5"
|
||||
: "py-5")
|
||||
? data.node?.description === "" && !nameEditable
|
||||
? "pb-5"
|
||||
: "py-5"
|
||||
: ""
|
||||
}
|
||||
>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue