We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b31e06 commit 7204816Copy full SHA for 7204816
src/components/ImageSegmentation/index.js
@@ -118,7 +118,8 @@ export default ({
118
)
119
120
const allowedArea = useMemo(() => {
121
- if (!iface.allowedArea && !sample?.allowedArea) return undefined
+ if (!iface.allowedArea && !sample?.allowedArea)
122
+ return { x: 0, y: 0, w: 1, h: 1 }
123
const { x, y, width: w, height: h } =
124
sample?.allowedArea || iface?.allowedArea
125
return { x, y, w, h }
0 commit comments