Skip to content

Commit 291fb86

Browse files
committed
Navigate back to task input upon repo deletion
1 parent ea86ed8 commit 291fb86

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/array/src/renderer/features/sidebar/components/SidebarMenu.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,13 @@ function SidebarMenuComponent() {
153153
if (!result.action) return;
154154

155155
if (result.action.type === "remove") {
156+
// Check if we're currently viewing a task that uses this folder
157+
if (view.type === "task-detail" && view.taskId) {
158+
const workspace = workspaces[view.taskId];
159+
if (workspace?.folderId === folderId) {
160+
navigateToTaskInput();
161+
}
162+
}
156163
await removeFolder(folderId);
157164
} else if (result.action.type === "external-app") {
158165
const { handleExternalAppAction } = await import(

0 commit comments

Comments
 (0)