From 41c1bc4e2d9c2fec39d76da88b018732096fa50b Mon Sep 17 00:00:00 2001
From: Leonardo Christino <leomilho@gmail.com>
Date: Tue, 17 Oct 2023 12:30:30 +0200
Subject: [PATCH] fix(qb): in case of int connection, cast to float and use
 float logic

solves #DEV-228
---
 .../panel/querysidepanel/queryBuilderLogicPillsPanel.tsx        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/shared/lib/querybuilder/panel/querysidepanel/queryBuilderLogicPillsPanel.tsx b/libs/shared/lib/querybuilder/panel/querysidepanel/queryBuilderLogicPillsPanel.tsx
index 46c1f9e7a..08fef79fd 100644
--- a/libs/shared/lib/querybuilder/panel/querysidepanel/queryBuilderLogicPillsPanel.tsx
+++ b/libs/shared/lib/querybuilder/panel/querysidepanel/queryBuilderLogicPillsPanel.tsx
@@ -20,7 +20,7 @@ export const QueryBuilderLogicPillsPanel = (props: {
   } | null;
 }) => {
   let filterType = (props.connection?.params?.handleId ? toHandleData(props.connection.params.handleId).attributeType : null) as string;
-  filterType = filterType && filterType === 'float' ? 'number' : filterType;
+  filterType = filterType && filterType === 'float' || 'int' ? 'number' : filterType;
 
   const dataOps = [
     {
-- 
GitLab