mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
fix(ui): fix canvas color picker when value is zero
good ol' zero is false-y
This commit is contained in:
committed by
Kent Keirsey
parent
dcd11327c1
commit
b7f63a4065
@@ -37,7 +37,12 @@ const useColorPicker = () => {
|
||||
1
|
||||
).data;
|
||||
|
||||
if (!(a && r && g && b)) {
|
||||
if (
|
||||
r === undefined ||
|
||||
g === undefined ||
|
||||
b === undefined ||
|
||||
a === undefined
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user