fix(ui): delete all layers button

This commit is contained in:
psychedelicious 2024-06-17 16:48:09 +10:00
parent be5094fcb4
commit 15ad4e3f5e

View File

@ -26,7 +26,7 @@ export const DeleteAllLayersButton = memo(() => {
leftIcon={<PiTrashSimpleBold />}
variant="ghost"
colorScheme="error"
isDisabled={entityCount > 0}
isDisabled={entityCount === 0}
data-testid="control-layers-delete-all-layers-button"
>
{t('controlLayers.deleteAll')}