Skip to content

Commit

Permalink
chore: proper rename
Browse files Browse the repository at this point in the history
  • Loading branch information
haakonflatval-cognite committed Sep 16, 2024
1 parent 45bdc55 commit 2ce9b9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions react-components/src/utilities/tryGetModelIdFromExternalId.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*!
* Copyright 2024 Cognite AS
*/
import { getModelIdFromExternalId } from '../data-providers/core-dm-provider/getCdfIdFromExternalId';
import { getModelIdFromExternalId as getCoreDmModelIdFromExternalId } from '../data-providers/core-dm-provider/getCdfIdFromExternalId';

export function tryGetModelIdFromExternalId(externalId: string): number | undefined {
const legacyModelId = Number(externalId);
if (!isNaN(legacyModelId)) {
return legacyModelId;
}

const coreDmModelId = getModelIdFromExternalId(externalId);
const coreDmModelId = getCoreDmModelIdFromExternalId(externalId);

if (!isNaN(coreDmModelId)) {
return coreDmModelId;
Expand Down

0 comments on commit 2ce9b9f

Please sign in to comment.