mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 18:45:56 +08:00
fix: "today" statistics are not displayed in chart view (#13854)
This commit is contained in:
parent
ee49d321c5
commit
f3ad3a5dfd
@ -53,7 +53,7 @@ export default function ChartView({ appId }: IChartViewProps) {
|
|||||||
className='mt-0 !w-40'
|
className='mt-0 !w-40'
|
||||||
onSelect={(item) => {
|
onSelect={(item) => {
|
||||||
const id = item.value
|
const id = item.value
|
||||||
const value = TIME_PERIOD_MAPPING[id]?.value || '-1'
|
const value = TIME_PERIOD_MAPPING[id]?.value ?? '-1'
|
||||||
const name = item.name || t('appLog.filter.period.allTime')
|
const name = item.name || t('appLog.filter.period.allTime')
|
||||||
onSelect({ value, name })
|
onSelect({ value, name })
|
||||||
}}
|
}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user