Skip to content

Commit

Permalink
Added import of data by datetime range
Browse files Browse the repository at this point in the history
  • Loading branch information
juliarobles committed Sep 19, 2024
1 parent 1184dc8 commit cb55773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/step2_ImportData.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ export const ImportData: React.FC<Props> = ({ model, collections, addCollection,
if (!newDisabled) newDisabledButton = !(
(mode.value === ImportDataEnum.EXCEL && fileCSV !== undefined) ||
(mode.value === ImportDataEnum.DATETIME_VARIABLE_GRAFANA && selectedGrafanaVariable && selectedGrafanaVariable.value !== undefined) ||
(mode.value === ImportDataEnum.DATETIME_RANGE && dateTimeInput !== undefined && dateTimeInputStart !== undefined) ||
(mode.value === ImportDataEnum.DATETIME_RANGE && dateTimeInput !== undefined && dateTimeInputStart !== undefined && dateTimeInputStart.isBefore(dateTimeInput)) && !dateTimeInputStart.isSame(dateTimeInput) ||
(mode.value === ImportDataEnum.DATETIME_SET && dateTimeInput !== undefined))
}
setDisabled(newDisabled)
Expand Down

0 comments on commit cb55773

Please sign in to comment.