Skip to content

Commit 80c23a3

Browse files
authored
fix: update view after deleting folder in dashboard (#3942)
1 parent 491e32c commit 80c23a3

File tree

1 file changed

+8
-0
lines changed
  • packages/app/src/app/pages/Dashboard/Sidebar/SandboxesItem/FolderEntry

1 file changed

+8
-0
lines changed

packages/app/src/app/pages/Dashboard/Sidebar/SandboxesItem/FolderEntry/index.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,14 @@ class FolderEntry extends React.Component<Props, State> {
203203
});
204204
},
205205
});
206+
207+
const subPath = path
208+
.split('/')
209+
.slice(0, -1)
210+
.join('/');
211+
212+
history.replace(`${basePath}${subPath}`);
213+
206214
return true;
207215
},
208216
},

0 commit comments

Comments
 (0)