diff --git a/libs/shared/lib/data-access/socket/broker/index.tsx b/libs/shared/lib/data-access/socket/broker/index.tsx index cd47d192142c79c217440a6f1771b7fcbd2b7c23..4f56a0a402204a469b7c2c17b0b9290ffb12b254 100644 --- a/libs/shared/lib/data-access/socket/broker/index.tsx +++ b/libs/shared/lib/data-access/socket/broker/index.tsx @@ -44,27 +44,15 @@ export default class Broker { this.catchAllListener(jsonObject, routingKey); } Object.values(this.listeners[routingKey]).forEach((listener) => listener(jsonObject, routingKey)); - console.debug( - `message processed with routing key %c${routingKey}`, - 'font-weight:bold; color: blue; background-color: white;', - jsonObject - ); + console.debug(routingKey, `message processed with routing key`, jsonObject); } // If there are no listeners, log the message else { if (this.catchAllListener) { this.catchAllListener(jsonObject, routingKey); - console.debug( - `catch all used for message with routing key %c${routingKey}`, - 'font-weight:bold; color: blue; background-color: white;', - jsonObject - ); + console.debug(routingKey, `catch all used for message with routing key`, jsonObject); } else { - console.debug( - `no listeners for message with routing key %c${routingKey}`, - 'font-weight:bold; color: blue; background-color: white;', - jsonObject - ); + console.debug(routingKey, `no listeners for message with routing key`, jsonObject); } } } diff --git a/libs/shared/lib/querybuilder/panel/querysidepanel/queryBuilderLogicPillsPanel.tsx b/libs/shared/lib/querybuilder/panel/querysidepanel/queryBuilderLogicPillsPanel.tsx index 08fef79fdad79b30c120001e59d425a5e238b9dd..9f8b9b1c8bf9f3af61365097a1e88c731c2d7503 100644 --- a/libs/shared/lib/querybuilder/panel/querysidepanel/queryBuilderLogicPillsPanel.tsx +++ b/libs/shared/lib/querybuilder/panel/querysidepanel/queryBuilderLogicPillsPanel.tsx @@ -20,7 +20,9 @@ export const QueryBuilderLogicPillsPanel = (props: { } | null; }) => { let filterType = (props.connection?.params?.handleId ? toHandleData(props.connection.params.handleId).attributeType : null) as string; - filterType = filterType && filterType === 'float' || 'int' ? 'number' : filterType; + if (!filterType) return <></>; + else if (filterType === 'string') filterType = 'string'; + else if (filterType === 'int' || filterType === 'float') filterType = 'number'; const dataOps = [ {