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:
chanx
2026-01-23 09:33:34 +08:00
committed by GitHub
parent 7c9b6e032b
commit e9453a3971
12 changed files with 796 additions and 82 deletions

View File

@ -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 },
],
};
});