Skip to content

Commit

Permalink
chore: change naming convention to adhere to FDM standard
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed Jul 26, 2023
1 parent 96275c4 commit 4f7f70b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions react-components/src/hooks/useFdmAssetMappings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const useFdmAssetMappings = (
];

const modelId = Number.parseInt(instance.endNode.externalId.slice(9));
const revisionId = mappingProperty.RevisionId;
const revisionId = mappingProperty.revisionId;

const isAdded = modelMappingsTemp.some(
(mapping) => mapping.modelId === modelId && mapping.revisionId === revisionId
Expand All @@ -57,7 +57,7 @@ export const useFdmAssetMappings = (
modelId,
revisionId,
mappings: [
{ nodeId: mappingProperty.NodeId, externalId: instance.startNode.externalId }
{ nodeId: mappingProperty.nodeId, externalId: instance.startNode.externalId }
]
});
} else {
Expand All @@ -66,7 +66,7 @@ export const useFdmAssetMappings = (
);

modelMapping?.mappings.push({
nodeId: mappingProperty.NodeId,
nodeId: mappingProperty.nodeId,
externalId: instance.startNode.externalId
});
}
Expand Down

0 comments on commit 4f7f70b

Please sign in to comment.