HumanSignal / HumanSignal/label-studio

Uncaught TypeError: Cannot read property 'content' of undefined

Open
#1,271 1 comment 0 reactions 1 assignee Claimed by @makseq View on GitHub
editor images problem
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

Warning: Cannot update a component (`wrappedComponent`) while rendering a different component (`RelationItem`). To locate the bad setState() call inside `RelationItem`,

Uncaught TypeError: Cannot read property 'content' of undefined
at stageRelatedBBox (BoundingBox.js:73)
at _detect (BoundingBox.js:110)
at Function.bbox (BoundingBox.js:16)
at RelationShape.boundingBox (RelationShape.js:18)
at calculateBBox (NodesConnector.js:70)
at Object.getNodesBBox (NodesConnector.js:84)
at RelationItem (RelationsOverlay.js:102)
at renderWithHooks (react-dom.development.js:14985)

annotations: [
{
"result": [{"id":"uMyfJVbpDs","from_name":"tag","to_name":"img","type":"polygonlabels","source":"Hello","meta":{},"value":{"points":[[12.4,90.60832443970116],[25.733333333333334,86.65955176093917],[25.466666666666665,96.9050160085379],[18.133333333333333,94.02347918890075]],"polygonlabels":["Hello"]},"image_rotation":0,"naturalPoints":[[93,848.9999999999999],[193,812],[191,908.0000000000001],[136,881]]},{"id":"DhpBc26N3t","from_name":"tag","to_name":"img","type":"polygonlabels","source":"Hello","meta":{},"value":{"points":[[45.46666666666667,83.88473852721454],[37.6,93.16969050160085],[56.00000000000001,93.16969050160085],[57.06666666666666,88.47385272145144]],"polygonlabels":["World"]},"image_rotation":0,"naturalPoints":[[341,786.0000000000001],[282,873],[420.00000000000006,873],[428,829]]},{"type":"relation","to_id":"uMyfJVbpDs","from_id":"DhpBc26N3t","direction":"right"}]
}
],

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.