Fixed bug where name is not changed when description changes

This commit is contained in:
Lucas Oliveira 2023-08-24 10:52:23 -03:00
commit eaf70303ee

View file

@ -67,7 +67,6 @@ export const EditFlowSettings: React.FC<InputProps> = ({
}, [name, description]);
const handleDescriptionChange = (event: ChangeEvent<HTMLTextAreaElement>) => {
flows.find((f) => f.id === tabId).description = event.target.value;
setCurrentDescription(flows.find((f) => f.id === tabId).description);
setDescription(event.target.value);
};