correcting build error

Signed-off-by: Tarak Nath Tatwa <bikashcric1995@gmail.com>
This commit is contained in:
Tarak Nath Tatwa
2023-08-16 21:07:25 +05:30
parent 47616494b6
commit 91be863cac
@@ -17,9 +17,8 @@ import { Entity } from '@backstage/catalog-model';
import { AZURE_DEVOPS_PROJECT_LOCATION } from '../constants';
export const isDevAzureLocation = (entity: Entity): boolean => {
return (
entity.metadata.annotations?.[AZURE_DEVOPS_PROJECT_LOCATION].includes(
'dev.azure.com',
) || false
);
const location = entity.metadata.annotations?.[AZURE_DEVOPS_PROJECT_LOCATION];
if (location) return location.includes('dev.azure.com');
return false;
};