Skip to content
Snippets Groups Projects
Commit 3f7bc056 authored by Leonardo Christino's avatar Leonardo Christino
Browse files

fix(logic): fix connection type detection for strings

parent 4853061b
No related branches found
No related tags found
No related merge requests found
Pipeline #127545 passed
......@@ -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);
}
}
}
......
......@@ -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 = [
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment