mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 00:35:58 +08:00
fix: app log filter value error (#11624)
This commit is contained in:
parent
194bc60429
commit
bdfdccd511
@ -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 [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) => {
|
const onSelect = (item: Item) => {
|
||||||
if (item.value === '-1') {
|
if (item.value === -1) {
|
||||||
setPeriod({ name: item.name, query: undefined })
|
setPeriod({ name: item.name, query: undefined })
|
||||||
}
|
}
|
||||||
else if (item.value === 0) {
|
else if (item.value === 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user