diff --git a/libs/shared/lib/querybuilder/pills/customFlowPills/logicpill/QueryLogicPill.tsx b/libs/shared/lib/querybuilder/pills/customFlowPills/logicpill/QueryLogicPill.tsx index 79cdea0e8d14676be4d70022a1785ff88acffe73..032ae41e07cde66bf49a7e01518ee3385f6544f7 100644 --- a/libs/shared/lib/querybuilder/pills/customFlowPills/logicpill/QueryLogicPill.tsx +++ b/libs/shared/lib/querybuilder/pills/customFlowPills/logicpill/QueryLogicPill.tsx @@ -54,6 +54,12 @@ export function QueryLogicPill(node: SchemaReactflowLogicNode) { if (inputReference?.current) inputReference.current.focus(); }, [node.id]); + // FIXME: This is a temporary fix to prevent the logic pill from rendering when the input is not set + if (!logic.input) { + console.error('LogicPill: logic.input is undefined', logic.input); + return null; + } + return ( <LogicPill title={connectionsToLeft[0]?.attributes?.sourceHandleData.attributeName}