Skip to content

Commit

Permalink
enable save button after submitting or deleting a file (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreVasseur authored Sep 5, 2024
1 parent c5d68c8 commit 4bea99d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/packages/modules-operations/document/edition/edition.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,19 @@ const OperationsDocumentationEdition = (props) => {

const uploadFile = (files) => {
setServerSideError('');
setClientSideErrors({
...clientSideErrors,
errorMessage: [],
});
setFiles(files);
};

const removeFile = () => {
setServerSideError('');
setClientSideErrors({
...clientSideErrors,
errorMessage: [],
});
setFiles([]);
};

Expand Down

0 comments on commit 4bea99d

Please sign in to comment.