diff --git a/src/app/components/data-page/data-page.component.ts b/src/app/components/data-page/data-page.component.ts index 432f674..dc2736f 100644 --- a/src/app/components/data-page/data-page.component.ts +++ b/src/app/components/data-page/data-page.component.ts @@ -1,4 +1,4 @@ -import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core'; +import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core'; import { ActivatedRoute } from '@angular/router'; import { deepen } from 'src/app/helperFunctions/deepenObject'; import { flatten } from 'src/app/helperFunctions/flattenObject'; @@ -32,7 +32,7 @@ interface ReferenceTableInfo { templateUrl: './data-page.component.html', styleUrls: ['./data-page.component.scss'], }) -export class DataPageComponent implements OnInit { +export class DataPageComponent implements OnInit, OnDestroy { @Input() propertiesInfo: Array = []; @@ -89,6 +89,10 @@ export class DataPageComponent implements OnInit { }, this.relockingIntervalDuration); } + ngOnDestroy() { + clearInterval(this.relockingInterval); + } + addPropertiesFromGQLSchemaToObject(infoObject: any) { for (const prop of infoObject) { if (prop.type === 'Group') { diff --git a/src/app/components/table/table.component.html b/src/app/components/table/table.component.html index 9b3a277..17d2b4c 100644 --- a/src/app/components/table/table.component.html +++ b/src/app/components/table/table.component.html @@ -3,7 +3,7 @@ {{ headline }}
- + -->