mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): fix canvas color picker when value is zero
good ol' zero is false-y
This commit is contained in:
parent
dcd11327c1
commit
b7f63a4065
@ -37,7 +37,12 @@ const useColorPicker = () => {
|
|||||||
1
|
1
|
||||||
).data;
|
).data;
|
||||||
|
|
||||||
if (!(a && r && g && b)) {
|
if (
|
||||||
|
r === undefined ||
|
||||||
|
g === undefined ||
|
||||||
|
b === undefined ||
|
||||||
|
a === undefined
|
||||||
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user