Skip to content

Commit

Permalink
Remove check for deleting self
Browse files Browse the repository at this point in the history
There's not actually any way to delete the current directory, so remove
the check for navigating away if we delete ourselves.
  • Loading branch information
allisonkarlitskaya authored and jelly committed Feb 12, 2024
1 parent ec293d1 commit 5573753
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/apis/spawnHelpers.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ export const spawnDeleteItem = ({ path, selected, Dialogs, setSelected }) => {
], options)
.then(() => {
setSelected([]);
if (selected.length === 0) {
const newPath = path.slice(0, -1).join("/");

cockpit.location.go("/", { path: encodeURIComponent(newPath) });
}
})
.finally(Dialogs.close)
.catch(err => {
Expand Down

0 comments on commit 5573753

Please sign in to comment.