diff options
Diffstat (limited to 'src/features/workspaces/containers/EditWorkspaceScreen.tsx')
-rw-r--r-- | src/features/workspaces/containers/EditWorkspaceScreen.tsx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/features/workspaces/containers/EditWorkspaceScreen.tsx b/src/features/workspaces/containers/EditWorkspaceScreen.tsx index 0b66db0d0..abc747c33 100644 --- a/src/features/workspaces/containers/EditWorkspaceScreen.tsx +++ b/src/features/workspaces/containers/EditWorkspaceScreen.tsx | |||
@@ -9,11 +9,10 @@ import { workspaceStore } from '../index'; | |||
9 | import { deleteWorkspaceRequest, updateWorkspaceRequest } from '../api'; | 9 | import { deleteWorkspaceRequest, updateWorkspaceRequest } from '../api'; |
10 | 10 | ||
11 | class EditWorkspaceScreen extends Component<StoresProps> { | 11 | class EditWorkspaceScreen extends Component<StoresProps> { |
12 | // @ts-expect-error Not all code paths return a value. | ||
13 | onDelete = () => { | 12 | onDelete = () => { |
14 | const { workspaceBeingEdited } = workspaceStore; | 13 | const { workspaceBeingEdited } = workspaceStore; |
15 | const { actions } = this.props; | 14 | const { actions } = this.props; |
16 | if (!workspaceBeingEdited) return null; | 15 | if (!workspaceBeingEdited) return; |
17 | actions.workspaces.delete({ workspace: workspaceBeingEdited }); | 16 | actions.workspaces.delete({ workspace: workspaceBeingEdited }); |
18 | }; | 17 | }; |
19 | 18 | ||