From 4abe87f99d62eb0a89ff7b9d08c2667126deedb5 Mon Sep 17 00:00:00 2001 From: Samuel Imolorhe Date: Sat, 16 Dec 2023 19:42:19 +0100 Subject: [PATCH] Fixed missing schema form input for lists and strings --- .../schema-form-item-input.component.ts | 2 +- .../schema-form-item-list.component.ts | 2 +- .../schema-form-item.component.html | 4 ++-- .../schema-form-item.component.ts | 15 +++++++++++++++ .../.vuepress/theme/components/Contributions.vue | 2 -- yarn.lock | 15 +++++---------- 6 files changed, 24 insertions(+), 16 deletions(-) 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 @@ - -