From af4f2584899c93b306343d92df854db647cb9e6a Mon Sep 17 00:00:00 2001 From: psychedelicious <4822129+psychedelicious@users.noreply.github.com> Date: Mon, 17 Jun 2024 16:48:09 +1000 Subject: [PATCH] fix(ui): delete all layers button --- .../features/controlLayers/components/DeleteAllLayersButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/controlLayers/components/DeleteAllLayersButton.tsx b/invokeai/frontend/web/src/features/controlLayers/components/DeleteAllLayersButton.tsx index 647a8fba2c..fbe9c22f68 100644 --- a/invokeai/frontend/web/src/features/controlLayers/components/DeleteAllLayersButton.tsx +++ b/invokeai/frontend/web/src/features/controlLayers/components/DeleteAllLayersButton.tsx @@ -26,7 +26,7 @@ export const DeleteAllLayersButton = memo(() => { leftIcon={} variant="ghost" colorScheme="error" - isDisabled={entityCount > 0} + isDisabled={entityCount === 0} data-testid="control-layers-delete-all-layers-button" > {t('controlLayers.deleteAll')}