1
0
Fork 0
mirror of synced 2024-07-16 19:56:10 +12:00

Removed forced default behaviour for date range

This commit is contained in:
Dean 2022-08-03 16:06:39 +01:00
parent e97c0d15b0
commit 5c29b57c0f

View file

@ -38,14 +38,6 @@
{ value: "5-m", label: "Past 5 mins" },
]
$: parsedOptions = timeOptions.filter(ele => {
return !cloudHosted || (licensePlan?.type === "free" && "1-w" !== ele.value)
})
$: if (parsedOptions.length && timeRange === null) {
timeRange = parsedOptions[0].value
}
const statusOptions = [
{ value: SUCCESS, label: "Success" },
{ value: ERROR, label: "Error" },
@ -144,7 +136,7 @@
</div>
<div class="select">
<Select
placeholder={parsedOptions[0]?.label}
placeholder="All"
label="Date range"
bind:value={timeRange}
options={timeOptions}