From 84ed0cf2566ad77c4d0335b12e3b78c48e92cd22 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 1 Jan 2023 22:18:18 +0100 Subject: [PATCH] Fixing component empty lifecycle function #569 --- .../gallery-statistic/gallery-statistic.component.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.ts b/src/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.ts index e05e24ab..7a24be71 100644 --- a/src/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.ts +++ b/src/frontend/app/ui/settings/gallery-statistic/gallery-statistic.component.ts @@ -1,4 +1,4 @@ -import {Component, OnInit} from '@angular/core'; +import {Component} from '@angular/core'; import {SettingsService} from '../settings.service'; @Component({ @@ -6,14 +6,9 @@ import {SettingsService} from '../settings.service'; templateUrl: './gallery-statistic.component.html', styleUrls: ['./gallery-statistic.component.css'] }) -export class GalleryStatisticComponent implements OnInit { +export class GalleryStatisticComponent { - constructor( - public settingsService: SettingsService - ) { - } - - ngOnInit(): void { + constructor(public settingsService: SettingsService) { } }