Skip to content

Commit

Permalink
fix: Tusk automated feedback for automated check failure
Browse files Browse the repository at this point in the history
  • Loading branch information
use-tusk[bot] authored Oct 8, 2024
1 parent 4650a14 commit aed1070
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion web/components/shared/themed/table/themedTableHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function ThemedTableHeader<T>(props: ThemedTableHeaderProps<T>) {
isFetching={false}
defaultValue={getDefaultValue()}
custom={true}
onDateChange={timeFilter.onDateChange} // Add this line
onDateChange={timeFilter.onDateChange}
/>
) : (
<div />
Expand Down
4 changes: 2 additions & 2 deletions web/components/shared/themed/themedTimeFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface ThemedTimeFilterProps {
defaultValue: string;
currentTimeFilter: TimeFilter;
custom?: boolean;
onDateChange: (date: DateRange | undefined) => void; // Add this line
onDateChange: (date: DateRange | undefined) => void;
}

function formatDateToInputString(date: Date): string {
Expand Down Expand Up @@ -101,7 +101,7 @@ const ThemedTimeFilter = (props: ThemedTimeFilterProps) => {
);
setActive("custom");
onSelect("custom", `${start.toISOString()}_${end.toISOString()}`);
props.onDateChange(newDate); // Add this line
props.onDateChange(newDate);
}
}}
initialDateRange={{
Expand Down
1 change: 1 addition & 0 deletions web/components/templates/dashboard/dashboardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ const DashboardPage = (props: DashboardPageProps) => {
timeFilterOptions: [],
defaultTimeFilter: interval,
onTimeSelectHandler: onTimeSelectHandler,
onDateChange: onTimeSelectHandler,
}}
advancedFilter={{
filterMap,
Expand Down

0 comments on commit aed1070

Please sign in to comment.