default start and end date

This commit is contained in:
Peter Clement 2023-02-23 13:49:44 +00:00
parent a713199ddc
commit f593b39e1b
1 changed files with 5 additions and 1 deletions

View File

@ -68,7 +68,10 @@
let selectedLog
let sidePanelVisible = false
let wideSidePanel = false
let startDate, endDate
let startDate = new Date()
startDate.setDate(startDate.getDate() - 30)
let endDate = new Date()
$: fetchUsers(userPage, userSearchTerm)
$: fetchLogs({
@ -266,6 +269,7 @@
<div class="date-picker">
<DatePicker
value={[startDate, endDate]}
placeholder="Choose date range"
range={true}
on:change={e => {