Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kapantzak committed Sep 12, 2024
1 parent 0a09ad7 commit f5a50ad
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/QueryEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ const QueryEditor: React.FC<Props> = ({ datasource, query, range, onChange, onRu
const { rooms, fetchRooms } = useFetchRooms(baseUrl);
const { nodes, fetchNodes } = useFetchNodes(baseUrl);
const { contexts, fetchContexts } = useFetchContexts(baseUrl);
//const { fetchDimensions } = useFetchDimensions(baseUrl);
const [allDimensions, setAllDimension] = useState([]);
const [units, setUnits] = useState('');
const [filters, setFilters] = useState<any>(defaultFilter);
Expand Down Expand Up @@ -131,8 +130,6 @@ const QueryEditor: React.FC<Props> = ({ datasource, query, range, onChange, onRu
filteredNodes.push({ label: currentNode?.name, value: currentNode?.id });
});
}

//fetchDimensions({ spaceId, roomId, contextId, nodeIDs: filteredNodes.map((n: any) => n.value) });
}
}, [contextId]); // eslint-disable-line

Expand Down Expand Up @@ -204,7 +201,6 @@ const QueryEditor: React.FC<Props> = ({ datasource, query, range, onChange, onRu
setSelectedMethod(Methods[0]);
setSelectedAggregations(Aggreagations[0]);

//fetchDimensions({ spaceId, roomId, contextId: v.value, nodeIDs: selectedNodes?.map((n: any) => n.value) || [] });
onChange({ ...query, contextId: v.value });
onRunQuery();
};
Expand All @@ -220,7 +216,6 @@ const QueryEditor: React.FC<Props> = ({ datasource, query, range, onChange, onRu
setSelectedMethod(Methods[0]);
setSelectedAggregations(Aggreagations[0]);

//fetchDimensions({ spaceId, roomId, contextId, nodeIDs: data });
setSelectedNodes(data);
onChange({ ...query, spaceId, roomId, contextId, nodes: data } as MyQuery);
onRunQuery();
Expand Down

0 comments on commit f5a50ad

Please sign in to comment.