Signed-off-by: anderoo <anderoojohnson@gmail.com>
This commit is contained in:
anderoo
2021-05-12 10:09:56 +01:00
parent d8e24a7ae3
commit b23260677a
2 changed files with 5 additions and 3 deletions
@@ -359,7 +359,7 @@ describe('github-deployments', () => {
expect.assertions(7);
});
});
describe('entity with other location types', () => {
beforeEach(() => {
entity = entityStub;
@@ -73,8 +73,10 @@ export const GithubDeploymentsCard = ({
columns?: TableColumn<GithubDeployment>[];
}) => {
const { entity } = useEntity();
const [host] = [entity?.metadata.annotations?.[SOURCE_LOCATION_ANNOTATION],
entity?.metadata.annotations?.[LOCATION_ANNOTATION]].filter(Boolean);
const [host] = [
entity?.metadata.annotations?.[SOURCE_LOCATION_ANNOTATION],
entity?.metadata.annotations?.[LOCATION_ANNOTATION],
].filter(Boolean);
return !isGithubDeploymentsAvailable(entity) ? (
<MissingAnnotationEmptyState annotation={GITHUB_PROJECT_SLUG_ANNOTATION} />