From 59c332b3b9a0b2640b5cd195c8295d590a7a67d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20Flatval?= <70905152+haakonflatval-cognite@users.noreply.github.com> Date: Mon, 29 Jan 2024 11:38:38 +0100 Subject: [PATCH] fix(react-components): correct FdmiIdWithView type and bump version 0.28.1 (#4136) * fix(react-components): correct FdmInstanecWithView type * chore: bump version 0.28.1 --- react-components/package.json | 2 +- react-components/src/hooks/use3dRelatedEdgeConnections.ts | 2 +- react-components/src/utilities/types.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/react-components/package.json b/react-components/package.json index 25bc88a26c4..e20197db7a3 100644 --- a/react-components/package.json +++ b/react-components/package.json @@ -1,6 +1,6 @@ { "name": "@cognite/reveal-react-components", - "version": "0.28.0", + "version": "0.28.1", "exports": { ".": { "import": "./dist/index.js", diff --git a/react-components/src/hooks/use3dRelatedEdgeConnections.ts b/react-components/src/hooks/use3dRelatedEdgeConnections.ts index 5d84ebbbff0..3eaaa29689b 100644 --- a/react-components/src/hooks/use3dRelatedEdgeConnections.ts +++ b/react-components/src/hooks/use3dRelatedEdgeConnections.ts @@ -37,7 +37,7 @@ export function use3dRelatedEdgeConnections( return zipWith(nodeIds, views.items, (node, view) => ({ ...node, - view + view: view.inspectionResults.involvedViews[0] })); }, { enabled: fdmId !== undefined } diff --git a/react-components/src/utilities/types.ts b/react-components/src/utilities/types.ts index c27b0678054..5b834cf950c 100644 --- a/react-components/src/utilities/types.ts +++ b/react-components/src/utilities/types.ts @@ -3,4 +3,4 @@ */ import { type DmsUniqueIdentifier, type Source } from './FdmSDK'; -export type FdmInstanceWithView = DmsUniqueIdentifier & Source; +export type FdmInstanceWithView = DmsUniqueIdentifier & { view: Source };