Skip to content

Commit

Permalink
fix: workspace startup
Browse files Browse the repository at this point in the history
  • Loading branch information
akurinnoy committed Nov 13, 2024
1 parent 9588535 commit 783399c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ import { factoryResolverActionCreators } from '@/store/FactoryResolver';
import { selectFactoryResolver } from '@/store/FactoryResolver/selectors';
import { selectDefaultNamespace } from '@/store/InfrastructureNamespaces/selectors';
import { workspacesActionCreators } from '@/store/Workspaces';
import { devWorkspacesActionCreators } from '@/store/Workspaces/devWorkspaces';
import { selectDevWorkspaceWarnings } from '@/store/Workspaces/devWorkspaces/selectors';
import { selectAllWorkspaces } from '@/store/Workspaces/selectors';

Expand Down Expand Up @@ -306,7 +305,6 @@ const connector = connect(
...devfileRegistriesActionCreators,
...factoryResolverActionCreators,
...workspacesActionCreators,
createWorkspaceFromResources: devWorkspacesActionCreators.createWorkspaceFromResources,
},
null,
{
Expand Down
8 changes: 8 additions & 0 deletions packages/dashboard-frontend/src/store/Workspaces/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ export const actionCreators = {
);
},

createWorkspaceFromResources:
(
...args: Parameters<typeof devWorkspacesActionCreators.createWorkspaceFromResources>
): AppThunk =>
async dispatch => {
await dispatch(devWorkspacesActionCreators.createWorkspaceFromResources(...args));
},

createWorkspaceFromDevfile:
(
devfile: devfileApi.Devfile,
Expand Down

0 comments on commit 783399c

Please sign in to comment.