mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-04 09:35:06 +08:00
Fix: Metadata supports precise time selection (#12785)
### What problem does this PR solve? Fix: Metadata supports precise time selection ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -11,7 +11,11 @@ import { RowSelectionState } from '@tanstack/react-table';
|
||||
import { useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { useParams } from 'react-router';
|
||||
import { MetadataType, metadataValueTypeEnum } from '../constant';
|
||||
import {
|
||||
DEFAULT_VALUE_TYPE,
|
||||
MetadataType,
|
||||
metadataValueTypeEnum,
|
||||
} from '../constant';
|
||||
import {
|
||||
IBuiltInMetadataItem,
|
||||
IMetaDataReturnJSONSettings,
|
||||
@ -182,7 +186,7 @@ export const useMetadataOperations = () => {
|
||||
key,
|
||||
match: originalValue,
|
||||
value: newValuesRes,
|
||||
type,
|
||||
valueType: type || DEFAULT_VALUE_TYPE,
|
||||
};
|
||||
return {
|
||||
...prev,
|
||||
@ -193,7 +197,7 @@ export const useMetadataOperations = () => {
|
||||
...prev,
|
||||
updates: [
|
||||
...prev.updates,
|
||||
{ key, match: originalValue, value: newValuesRes, type },
|
||||
{ key, match: originalValue, value: newValuesRes, valueType: type },
|
||||
],
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user