Browse Source

fix: app log filter value error (#11624)

tags/0.14.0
Kevin9703 10 months ago
parent
commit
bdfdccd511
No account linked to committer's email address

+ 1
- 1
web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/chartView.tsx View File

@@ -28,7 +28,7 @@ export default function ChartView({ appId }: IChartViewProps) {
const [period, setPeriod] = useState<PeriodParams>({ name: t('appLog.filter.period.last7days'), query: { start: today.subtract(7, 'day').startOf('day').format(queryDateFormat), end: today.endOf('day').format(queryDateFormat) } })

const onSelect = (item: Item) => {
if (item.value === '-1') {
if (item.value === -1) {
setPeriod({ name: item.name, query: undefined })
}
else if (item.value === 0) {

Loading…
Cancel
Save