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:
balibabu
2025-11-10 13:27:09 +08:00
committed by GitHub
parent d016a06fd5
commit 86af330f06
8 changed files with 40 additions and 13 deletions

View File

@ -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(

View File

@ -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(() => {