fixed wrong bolean logic, now show in modal only if show is true

This commit is contained in:
anovazzi1 2023-04-27 20:48:52 -03:00
commit 69c7bbb0a9

View file

@ -89,7 +89,7 @@ export default function NodeModal({ data }: { data: NodeDataType }) {
<div className="flex flex-col h-full gap-5">
{
Object.keys(data.node.template)
.filter((t) => t.charAt(0) !== "_"&& data.node.template[t].advanced && !data.node.template[t].show)
.filter((t) => t.charAt(0) !== "_"&& data.node.template[t].advanced && data.node.template[t].show)
.map((t: string, idx) => {
return (
<ModalField