fix(striker-ui): add success message in edit file

main
Tsu-ba-me 1 year ago
parent 48dfc1b76c
commit 548e227f63
  1. 3
      striker-ui/components/Files/EditFileForm.tsx

@ -111,6 +111,9 @@ const EditFileForm: FC<EditFileFormProps> = (props) => {
api api
.put(`/file/${file.uuid}`, body) .put(`/file/${file.uuid}`, body)
.then(() => {
setApiMessage({ children: <>File updated.</> });
})
.catch((error) => { .catch((error) => {
const emsg = handleAPIError(error); const emsg = handleAPIError(error);

Loading…
Cancel
Save