@wandelbots/wandelbots-js-react-components 2.34.1-pr.feature-robot-precondition-list.372.d8a5663 → 2.34.1-pr.feature-robot-precondition-list.372.224a5cd

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wandelbots/wandelbots-js-react-components",
3
- "version": "2.34.1-pr.feature-robot-precondition-list.372.d8a5663",
3
+ "version": "2.34.1-pr.feature-robot-precondition-list.372.224a5cd",
4
4
  "description": "React UI toolkit for building applications on top of the Wandelbots platform",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -24,6 +24,11 @@ function BoundsRefresher({
24
24
  const bounds = useBounds()
25
25
 
26
26
  useAutorun(() => {
27
+ // Ensure rapidlyChangingMotionState exists before accessing its properties
28
+ if (!connectedMotionGroup.rapidlyChangingMotionState?.state) {
29
+ return
30
+ }
31
+
27
32
  // Access the rapidly changing motion state to make the autorun reactive to changes
28
33
  connectedMotionGroup.rapidlyChangingMotionState.state.joint_position
29
34
  connectedMotionGroup.rapidlyChangingMotionState.tcp_pose