From bb7947bb9451e160ace90c8137ee9a383d72c441 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Wed, 2 Jun 2021 08:28:19 +0100 Subject: [PATCH] Remove '1 hour' selector from date range picker --- packages/standard-components/src/DateRangePicker.svelte | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/standard-components/src/DateRangePicker.svelte b/packages/standard-components/src/DateRangePicker.svelte index ef5b4d1029..5031636fc8 100644 --- a/packages/standard-components/src/DateRangePicker.svelte +++ b/packages/standard-components/src/DateRangePicker.svelte @@ -16,7 +16,6 @@ let value = "Last 30 days" const options = [ - "Last 1 hour", "Last 1 day", "Last 7 days", "Last 30 days", @@ -34,9 +33,7 @@ let low = dayjs.utc().subtract(1, "year") let high = dayjs.utc().add(1, "day") - if (option === "Last 1 hour") { - low = dayjs.utc().subtract(1, "hour") - } else if (option === "Last 1 day") { + if (option === "Last 1 day") { low = dayjs.utc().subtract(1, "day") } else if (option === "Last 7 days") { low = dayjs.utc().subtract(7, "days")