Skip to content

Commit

Permalink
fix(react-components): expect right scene format (#4921)
Browse files Browse the repository at this point in the history
* fix(react-components): expect right scene format

* chore: bump to version 0.73.3
  • Loading branch information
haakonflatval-cognite authored Dec 2, 2024
1 parent e942858 commit f8ca2a0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cognite/reveal-react-components",
"version": "0.73.2",
"version": "0.73.3",
"exports": {
".": {
"import": "./dist/index.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ function poiItemToInstance(item: PoiItem): PointsOfInterestInstance<ExternalId>
positionZ: item.position[2],
visibility: item.visibility,
scene: {
externalId: item.sceneExternalId ?? 'dummy-scene-external-id',
space: item.sceneSpace ?? 'dummy-scene-space'
externalId: item.scene?.externalId ?? 'dummy-scene-external-id',
space: item.scene?.space ?? 'dummy-scene-space'
},
instanceRef: poiExternalInstanceRefToInstanceReference(item?.assetRef),
sceneState: item.sceneState
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ export type PoiItem = {
name: string;
description?: string;
position: Vec3;
sceneExternalId?: ExternalId;
sceneSpace?: Space;
scene?: DmsUniqueIdentifier;
sceneState: PoiSceneState;
assetRef?: PoiExternalInstanceRef;
visibility: PoiVisibility;
Expand Down

0 comments on commit f8ca2a0

Please sign in to comment.