refactor(GenericNode): simplify conditional class assignment for the … (#1206)

…div element in the GenericNode component
This commit is contained in:
Cristhian Zanforlin Lousa 2023-12-13 20:31:19 -03:00 committed by GitHub
commit 1a4e4f502a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
: ""
}
>