Remove '1 hour' selector from date range picker

This commit is contained in:
Andrew Kingston 2021-06-02 08:28:19 +01:00
parent 1b8e6ce195
commit c67dc0b439
1 changed files with 1 additions and 4 deletions

View File

@ -16,7 +16,6 @@
let value = "Last 30 days" let value = "Last 30 days"
const options = [ const options = [
"Last 1 hour",
"Last 1 day", "Last 1 day",
"Last 7 days", "Last 7 days",
"Last 30 days", "Last 30 days",
@ -34,9 +33,7 @@
let low = dayjs.utc().subtract(1, "year") let low = dayjs.utc().subtract(1, "year")
let high = dayjs.utc().add(1, "day") let high = dayjs.utc().add(1, "day")
if (option === "Last 1 hour") { if (option === "Last 1 day") {
low = dayjs.utc().subtract(1, "hour")
} else if (option === "Last 1 day") {
low = dayjs.utc().subtract(1, "day") low = dayjs.utc().subtract(1, "day")
} else if (option === "Last 7 days") { } else if (option === "Last 7 days") {
low = dayjs.utc().subtract(7, "days") low = dayjs.utc().subtract(7, "days")