Skip to content

Commit 84ad6a0

Browse files
lbogdanCompuIves
authored andcommitted
File explorer: highlight newly created file. (codesandbox#268)
1 parent 8e71f45 commit 84ad6a0

File tree

1 file changed

+3
-0
lines changed
  • src/app/store/entities/sandboxes/actions

1 file changed

+3
-0
lines changed

src/app/store/entities/sandboxes/actions/files.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import notificationActions from '../../../notifications/actions';
1818

1919
import { maybeForkSandbox } from './fork';
2020

21+
import sandboxActions from './index';
22+
2123
export const CREATE_MODULE_API_ACTIONS = createAPIActions(
2224
'SANDBOX',
2325
'CREATE_MODULE'
@@ -341,6 +343,7 @@ const createModule = (
341343

342344
dispatch(normalizeResult(moduleEntity, data));
343345
dispatch(addModuleToSandbox(sandboxId, data.id));
346+
dispatch(sandboxActions.setCurrentModule(sandboxId, data.id));
344347
};
345348

346349
const createDirectory = (

0 commit comments

Comments
 (0)