bbovenzi commented on code in PR #38080:
URL: https://github.com/apache/airflow/pull/38080#discussion_r1522248857
##########
airflow/www/static/js/dag/nav/FilterBar.tsx:
##########
@@ -49,9 +63,23 @@ const FilterBar = () => {
transformArrayToMultiSelectOptions,
} = useFilters();
+ // @ts-ignore
+ const isBaseDateDefault = moment(now).isSame(baseDate, "minute");
+ const isNumRunsDefault = numRuns === defaultDagRunDisplayNumber.toString();
+ const isRunStateDefault = !runState || !runState.length;
+ const isRunTypeDefault = !runType || !runType.length;
+ const areFiltersDefault =
+ isBaseDateDefault &&
+ isNumRunsDefault &&
Review Comment:
That's right. it isn't a filter. Updated.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]