diff options
author | 2021-12-14 15:39:29 +0100 | |
---|---|---|
committer | 2021-12-14 15:39:29 +0100 | |
commit | f6ab23069db2e15d5d7f2acc34e40d00592f3d86 (patch) | |
tree | eddde4d0be0999f68f8cae79f8d29a8ecf7027ed /src/features/workspaces/components | |
parent | Add visual feedback on updateWorkspaceRequest error (diff) | |
download | ferdium-app-f6ab23069db2e15d5d7f2acc34e40d00592f3d86.tar.gz ferdium-app-f6ab23069db2e15d5d7f2acc34e40d00592f3d86.tar.zst ferdium-app-f6ab23069db2e15d5d7f2acc34e40d00592f3d86.zip |
Reset updateWorkspaceRequest before re-save attempt
Enable the UI error message to flash as a reaction to the re-save attempt.
Diffstat (limited to 'src/features/workspaces/components')
-rw-r--r-- | src/features/workspaces/components/EditWorkspaceForm.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/features/workspaces/components/EditWorkspaceForm.js b/src/features/workspaces/components/EditWorkspaceForm.js index 406059795..26b3f83af 100644 --- a/src/features/workspaces/components/EditWorkspaceForm.js +++ b/src/features/workspaces/components/EditWorkspaceForm.js | |||
@@ -116,6 +116,7 @@ class EditWorkspaceForm extends Component { | |||
116 | } | 116 | } |
117 | 117 | ||
118 | save(form) { | 118 | save(form) { |
119 | this.props.updateWorkspaceRequest.reset(); | ||
119 | form.submit({ | 120 | form.submit({ |
120 | onSuccess: async f => { | 121 | onSuccess: async f => { |
121 | const { onSave } = this.props; | 122 | const { onSave } = this.props; |