null out newFileName after save a new bpmn diagram so it uses file from params instead

This commit is contained in:
jasquat 2022-08-11 09:04:49 -04:00
parent f50f63b626
commit 841bf8c1bd
1 changed files with 4 additions and 0 deletions

View File

@ -85,6 +85,10 @@ export default function ProcessModelEditDiagram() {
httpMethod,
postBody: formData,
});
// after saving the file, make sure we null out newFileName
// so it does not get used over the params
setNewFileName('');
};
const handleFileNameSave = (event: any) => {