From 6fcc7d4c4b37e4ea57464a32e5ba14083628ef0d Mon Sep 17 00:00:00 2001 From: Yorzaren <55202832+Yorzaren@users.noreply.github.com> Date: Sat, 23 Sep 2023 15:49:10 -0500 Subject: [PATCH] Re-enable button for seeds set to zero Change the statement to explicitly look for null and undefined so it doesn't fail to re-enable the button on images with seeds set to zero. --- .../gallery/components/CurrentImage/CurrentImageButtons.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx b/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx index 83b9466722..c511ae82be 100644 --- a/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx +++ b/invokeai/frontend/web/src/features/gallery/components/CurrentImage/CurrentImageButtons.tsx @@ -287,7 +287,7 @@ const CurrentImageButtons = (props: CurrentImageButtonsProps) => { icon={} tooltip={`${t('parameters.useSeed')} (S)`} aria-label={`${t('parameters.useSeed')} (S)`} - isDisabled={!metadata?.seed} + isDisabled={metadata?.seed === null || metadata?.seed === undefined} onClick={handleUseSeed} />