mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-02-05 10:05:05 +08:00
Feat: The keys for data manipulation operators can only be numbers, letters, and underscores. #10427 (#11130)
### What problem does this PR solve? Feat: The keys for data manipulation operators can only be numbers, letters, and underscores. #10427 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -35,7 +35,7 @@ function VariableAggregatorForm({ node }: INextOperatorForm) {
|
||||
});
|
||||
|
||||
const appendItem = useCallback(() => {
|
||||
append({ group_name: `Group ${fields.length}`, variables: [] });
|
||||
append({ group_name: `Group${fields.length}`, variables: [] });
|
||||
}, [append, fields.length]);
|
||||
|
||||
const outputList = buildOutputList(
|
||||
|
||||
@ -21,8 +21,10 @@ export const useHandleNameChange = (previousName: string) => {
|
||||
return name;
|
||||
}, [form, name, previousName]);
|
||||
|
||||
const handleNameChange = useCallback((e: ChangeEvent<any>) => {
|
||||
setName(e.target.value);
|
||||
const handleNameChange = useCallback((e: ChangeEvent<HTMLInputElement>) => {
|
||||
const value = e.target.value;
|
||||
const filteredValue = value.replace(/[^a-zA-Z0-9_]/g, '');
|
||||
setName(filteredValue);
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user