File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
packages/app/src/app/overmind/namespaces Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -101,6 +101,7 @@ export const directoryCreated: AsyncAction<{
101101 sandbox . directories ,
102102 optimisticId
103103 ) ;
104+
104105 effects . vscode . sandboxFsSync . mkdir (
105106 state . editor . modulesByPath ,
106107 optimisticDirectory
@@ -121,7 +122,7 @@ export const directoryCreated: AsyncAction<{
121122 shortid : newDirectory . shortid ,
122123 } ) ;
123124
124- effects . live . sendDirectoryCreated ( newDirectory ) ;
125+ effects . live . sendDirectoryCreated ( directory ) ;
125126 } catch ( error ) {
126127 const directoryIndex = state . editor . currentSandbox . directories . findIndex (
127128 directoryItem => directoryItem . shortid === optimisticDirectory . shortid
Original file line number Diff line number Diff line change @@ -220,10 +220,11 @@ export const toggleCurrentWorkspaceItem: Action = ({ state }) => {
220220} ;
221221
222222export const setWorkspaceHidden : Action < { hidden : boolean } > = (
223- { state } ,
223+ { state, effects } ,
224224 { hidden }
225225) => {
226226 state . workspace . workspaceHidden = hidden ;
227+ effects . vscode . resetLayout ( ) ;
227228} ;
228229
229230export const deleteTemplate : AsyncAction = async ( {
You can’t perform that action at this time.
0 commit comments