Skip to content

Commit

Permalink
Fixed nodeId type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Savokr committed Sep 4, 2023
1 parent 2a9783a commit 8d0a905
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion react-components/src/hooks/useCameraNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const useCameraNavigation = (): CameraNavigationActions => {
await fdmNodeCache.cache.getMappingsForFdmIds([{ externalId, space }], modelsRevisionIds)
)?.[0];

const nodeId = modelMappings?.mappings.get(externalId);
const nodeId = modelMappings?.mappings.get(externalId)?.[0];

if (modelMappings === undefined || nodeId === undefined) {
await Promise.reject(
Expand Down

0 comments on commit 8d0a905

Please sign in to comment.