fix run inpainting disable logic

This commit is contained in:
Qing 2022-11-30 21:57:28 +08:00
parent e71725bee0
commit 2611d2fb44

View File

@ -1471,8 +1471,9 @@ export default function Editor() {
</svg>
}
disabled={
!interactiveSegMask &&
(!hadDrawSomething() || isInpainting || isInteractiveSeg)
isInpainting ||
isInteractiveSeg ||
(!hadDrawSomething() && interactiveSegMask === null)
}
onClick={() => {
// ensured by disabled