# sidebar: Fix behavior of "Remove Project" button \(\#53242\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7adbee0cdc438a0252e6649914aa7fa063780902)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7adbee0cdc438a0252e6649914aa7fa063780902

Requested commit: 7adbee0cdc438a0252e6649914aa7fa063780902

Commit: 7adbee0cdc438a0252e6649914aa7fa063780902

Tree: 87228e6317b4f913780e6f795dc005c3f2ba354f

Author: Danilo Leal

Committer: GitHub

## Message

```
sidebar: Fix behavior of "Remove Project" button (#53242)

- Fix an issue where the "remove project" button, available in the
header's ellipsis menu, wouldn't do anything if the sidebar contained
only one project
- Fix another issue where attempting to remove a project when the
sidebar has more than one project wouldn't actually remove it. This is
fixed by cleaning up the project group keys after its been already
removed.

Release Notes:

- N/A
```

## Parents

- [383b0a7afb3d09ea39dad2bf9bf50d50e3395758](https://git.cafe/gitcafe/zed/commit/383b0a7afb3d09ea39dad2bf9bf50d50e3395758?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7adbee0cdc438a0252e6649914aa7fa063780902?format=markdown)
