Skip to content

Commit

Permalink
[frontend] Fix time filters in relationships counters (#8630)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archidoit authored Oct 16, 2024
1 parent 4868390 commit ff19cb5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const StixRelationshipsNumber = ({
variant,
height,
startDate,
endDate,
dataSelection,
parameters = {},
}) => {
Expand All @@ -69,7 +70,7 @@ const StixRelationshipsNumber = ({
const dateAttribute = selection.date_attribute && selection.date_attribute.length > 0
? selection.date_attribute
: 'created_at';
const { filters } = buildFiltersAndOptionsForWidgets(selection.filters);
const { filters } = buildFiltersAndOptionsForWidgets(selection.filters, { startDate, endDate, dateAttribute });
return (
<QueryRenderer
query={stixRelationshipsNumberNumberQuery}
Expand Down

0 comments on commit ff19cb5

Please sign in to comment.