Skip to content

Commit

Permalink
fix(react-components): correct FdmiIdWithView type and bump version 0…
Browse files Browse the repository at this point in the history
….28.1 (#4136)

* fix(react-components): correct FdmInstanecWithView type

* chore: bump version 0.28.1
  • Loading branch information
haakonflatval-cognite authored Jan 29, 2024
1 parent 6262a73 commit 59c332b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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.28.0",
"version": "0.28.1",
"exports": {
".": {
"import": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion react-components/src/hooks/use3dRelatedEdgeConnections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function use3dRelatedEdgeConnections(

return zipWith(nodeIds, views.items, (node, view) => ({
...node,
view
view: view.inspectionResults.involvedViews[0]
}));
},
{ enabled: fdmId !== undefined }
Expand Down
2 changes: 1 addition & 1 deletion react-components/src/utilities/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
*/
import { type DmsUniqueIdentifier, type Source } from './FdmSDK';

export type FdmInstanceWithView = DmsUniqueIdentifier & Source;
export type FdmInstanceWithView = DmsUniqueIdentifier & { view: Source };

0 comments on commit 59c332b

Please sign in to comment.