mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? fix: Error on chat api,<BadRequestKeyError '400: Bad Request'> #1918 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -260,8 +260,8 @@ const getDay = (date?: Dayjs) => date?.format('YYYY-MM-DD');
|
||||
|
||||
export const useFetchNextStats = () => {
|
||||
const [pickerValue, setPickerValue] = useState<RangeValue>([
|
||||
dayjs(),
|
||||
dayjs().subtract(7, 'day'),
|
||||
dayjs(),
|
||||
]);
|
||||
const { data, isFetching: loading } = useQuery<IStats>({
|
||||
queryKey: ['fetchStats', pickerValue],
|
||||
|
||||
Reference in New Issue
Block a user