From fbb0748d3b2738442b24ddc481c68e85a61cef83 Mon Sep 17 00:00:00 2001 From: Cesar Varela Date: Mon, 29 Apr 2024 15:15:55 -0300 Subject: [PATCH] Make sure incident id param is int --- .../apps/csettool/{mongodbAiidprodIncidents.incident_id}.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/site/gatsby-site/src/pages/apps/csettool/{mongodbAiidprodIncidents.incident_id}.js b/site/gatsby-site/src/pages/apps/csettool/{mongodbAiidprodIncidents.incident_id}.js index 672e4f2f19..69d4633866 100644 --- a/site/gatsby-site/src/pages/apps/csettool/{mongodbAiidprodIncidents.incident_id}.js +++ b/site/gatsby-site/src/pages/apps/csettool/{mongodbAiidprodIncidents.incident_id}.js @@ -15,7 +15,9 @@ const ToolPage = (props) => { } = props; const { data, loading } = useQuery(FIND_CLASSIFICATION, { - variables: { query: { incidents_in: { incident_id }, namespace_in: allNamespaces } }, + variables: { + query: { incidents_in: { incident_id: parseInt(incident_id) }, namespace_in: allNamespaces }, + }, }); const [tableData, setTableData] = useState([]);