bbovenzi commented on code in PR #69955:
URL: https://github.com/apache/airflow/pull/69955#discussion_r3971503204
##########
airflow-core/src/airflow/ui/src/hooks/useDateRangeFilter.ts:
##########
@@ -318,7 +304,31 @@ export const useDateRangeFilter = ({ onChange, translate,
value }: UseDateRangeF
const hasValidationErrors = editingState.validationErrors.length > 0;
+ const applyDateRange = () => {
+ const { inputs } = editingState;
+ const errors = validateInputs(inputs);
+
+ // Don't apply if there are validation errors
+ if (errors.length > 0) {
+ return;
Review Comment:
Can we double check that this return doesn't close the dateinput when there
is an error?
--
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]