Updating default date picker range to be previous 24hr (#28127)

* Setting default absolute range of RangeDatePicker component to be previous 24hrs

* Adding comment per PR feedback
This commit is contained in:
Garrett Spong 2019-01-07 17:26:20 -07:00 committed by GitHub
parent bc8013e81a
commit ed1987a012
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,7 +25,7 @@ export const initialInputsState: InputsState = {
timerange: {
kind: 'absolute',
from: moment()
.subtract(1, 'hour')
.subtract(1, 'day') // subtracts 24 hours from 'now'
.valueOf(),
to: moment().valueOf(),
},