Code cleanup

This commit is contained in:
Michael Shamoon
2022-02-15 23:43:02 -08:00
parent 4a9844d64b
commit c5c2257ff0
2 changed files with 10 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core';
import { Component } from '@angular/core';
import { FormControl } from '@angular/forms';
import { ActivatedRoute, Router, Params } from '@angular/router';
import { from, Observable, Subscription, BehaviorSubject } from 'rxjs';
@@ -18,7 +18,7 @@ import { FILTER_FULLTEXT_QUERY } from 'src/app/data/filter-rule-type';
templateUrl: './app-frame.component.html',
styleUrls: ['./app-frame.component.scss']
})
export class AppFrameComponent implements OnInit {
export class AppFrameComponent {
constructor (
public router: Router,
@@ -102,14 +102,13 @@ export class AppFrameComponent implements OnInit {
while (route.firstChild) {
route = route.firstChild
}
if (route.component == DocumentDetailComponent) {
if (route.component === DocumentDetailComponent) {
this.router.navigate([""])
}
}
})
}
ngOnInit() {
}
get displayName() {