Skip to content

Commit f4ab31e

Browse files
committed
Fix linting & tests
1 parent 02b014f commit f4ab31e

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

frontend/src/app/graphql.module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { APOLLO_OPTIONS, ApolloModule } from 'apollo-angular';
22
import { HttpLink } from 'apollo-angular/http';
33
import { NgModule } from '@angular/core';
44
import { ApolloClientOptions, InMemoryCache } from '@apollo/client/core';
5-
import { environment } from 'environments/environment';
65

76
const uri = "/graphql"
87
export function createApollo(httpLink: HttpLink): ApolloClientOptions<any> {

frontend/src/app/home/home.component.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div class="hero-banner home-banner">
22
<div class="container">
33
<div class="container__inner-container">
4-
<div class="hero-banner__content">
4+
<div class="hero-banner__content" *ngIf="homeData">
55
<h1 id="pgTitle">{{homeData.Title}}</h1>
66
<p>{{homeData.Description}}</p>
77
<div class="hero-banner__content--cta-btns">
@@ -21,11 +21,11 @@ <h1 id="pgTitle">{{homeData.Title}}</h1>
2121

2222
<div class="row">
2323

24-
<div class="col-lg-8">
24+
<div class="col-lg-8" *ngIf="homeData">
2525
<section class="about-info mb-0" [innerHTML]="homeData.About"></section>
2626
</div>
2727

28-
<div class="col-lg-4" *ngIf="fastFacts.length > 0">
28+
<div class="col-lg-4" *ngIf="fastFacts && fastFacts.length > 0">
2929
<section class="fast-facts">
3030
<h4>Fast Facts about the Mining Industry in British Columbia</h4>
3131
<ul class="row mb-0" *ngFor="let facts of fastFacts">
@@ -42,7 +42,7 @@ <h4>Fast Facts about the Mining Industry in British Columbia</h4>
4242
</div>
4343
</div>
4444

45-
<div class="fb-container bg-faded" *ngIf="homeData.Mining_blocks">
45+
<div class="fb-container bg-faded" *ngIf="homeData && homeData.Mining_blocks">
4646
<section class="container">
4747
<h2>Mining in British Columbia</h2>
4848
<div class="row feature-blocks">
@@ -68,7 +68,7 @@ <h3>Find Mines in B.C.</h3>
6868
</section>
6969
</div>
7070

71-
<div class="fb-container" id="bottom" *ngIf="homeData.Processes_blocks">
71+
<div class="fb-container" id="bottom" *ngIf="homeData && homeData.Processes_blocks">
7272
<section class="container mt-0">
7373
<h2>Our Processes &amp; Procedures</h2>
7474
<div class="row">

frontend/src/app/page/page.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { afterRender, Component, OnInit, ViewEncapsulation } from '@angular/core';
22
import { ActivatedRoute } from '@angular/router';
33
import { Page } from '../models/content/page';
4-
import { SafeHtmlPipe } from '@app/pipes/safe-html.pipe';
54

65
@Component({
76
selector: 'app-page',

0 commit comments

Comments
 (0)