diff --git a/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item-input/schema-form-item-input.component.ts b/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item-input/schema-form-item-input.component.ts index 0d1c38db18..02b8b1934a 100644 --- a/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item-input/schema-form-item-input.component.ts +++ b/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item-input/schema-form-item-input.component.ts @@ -9,7 +9,7 @@ import { ThemeRegistryService } from '../../../services'; }) export class SchemaFormItemInputComponent { @Input() item?: SchemaFormProperty; - @Input() data = ''; + @Input() data: string | undefined; @Output() dataChange = new EventEmitter(); diff --git a/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item-list/schema-form-item-list.component.ts b/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item-list/schema-form-item-list.component.ts index 341b37837f..15e525e3cc 100644 --- a/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item-list/schema-form-item-list.component.ts +++ b/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item-list/schema-form-item-list.component.ts @@ -13,7 +13,7 @@ import { JSONSchema6 } from 'json-schema'; }) export class SchemaFormItemListComponent { @Input() item?: SchemaFormProperty; - @Input() data: unknown[] = []; + @Input() data: unknown[] | undefined; @Output() dataChange = new EventEmitter(); diff --git a/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item/schema-form-item.component.html b/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item/schema-form-item.component.html index e9c9eaac4a..d649c9f85f 100644 --- a/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item/schema-form-item.component.html +++ b/packages/altair-app/src/app/modules/altair/components/schema-form/schema-form-item/schema-form-item.component.html @@ -22,7 +22,7 @@ - -