mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-08-18 20:53:57 +00:00
cleanup
This commit is contained in:
@@ -5,7 +5,7 @@ import { MatIconModule } from '@angular/material/icon';
|
||||
import { ParamInfo } from '../../models/form.model';
|
||||
import { ListsService } from '../../services/lists.service';
|
||||
import { SchemaService } from '../../services/schema.service';
|
||||
import { parseStringToArray } from '../../utils/params.utils';
|
||||
import { parseStringToArray } from '../../utils/params';
|
||||
|
||||
@Component({
|
||||
selector: 'app-array-form',
|
||||
|
||||
@@ -11,7 +11,7 @@ import { cloneDeep, has, isEqual } from 'lodash-es';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { ParamInfo, ParamsFormInfo } from '../../models/form.model';
|
||||
import { SchemaService } from '../../services/schema.service';
|
||||
import { cleanParams, schemaToParamsFormInfo } from '../../utils/params.utils';
|
||||
import { cleanParams, schemaToParamsFormInfo } from '../../utils/params';
|
||||
import { ArrayFormComponent } from '../array-form/array-form.component';
|
||||
@Component({
|
||||
selector: 'app-params-form',
|
||||
@@ -39,7 +39,6 @@ export class ParamsFormComponent implements OnChanges, OnDestroy {
|
||||
formGroupSubscription?: Subscription;
|
||||
|
||||
ngOnDestroy(): void {
|
||||
console.log('params-form destroyed')
|
||||
if (this.formGroupSubscription) {
|
||||
this.formGroupSubscription.unsubscribe()
|
||||
}
|
||||
@@ -49,7 +48,6 @@ export class ParamsFormComponent implements OnChanges, OnDestroy {
|
||||
paramsSchema: SomeJSONSchema
|
||||
data: any
|
||||
}>): void {
|
||||
console.log(changes)
|
||||
if (changes.paramsSchema) {
|
||||
if (changes.paramsSchema.previousValue === undefined && changes.paramsSchema.currentValue !== undefined) {
|
||||
if (this.paramsSchema) {
|
||||
|
||||
Reference in New Issue
Block a user