diff options
Diffstat (limited to 'catalog-ui/src/app')
-rw-r--r-- | catalog-ui/src/app/models/properties-inputs/input-fe-model.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/catalog-ui/src/app/models/properties-inputs/input-fe-model.ts b/catalog-ui/src/app/models/properties-inputs/input-fe-model.ts index bcdc95c18e..e9a59cb4bd 100644 --- a/catalog-ui/src/app/models/properties-inputs/input-fe-model.ts +++ b/catalog-ui/src/app/models/properties-inputs/input-fe-model.ts @@ -143,6 +143,10 @@ export class InputFEModel extends InputBEModel { } public resetMetadata = (): void => { + if (!this.metadataOrig){ + return; + } + this.metadata = _.cloneDeep(this.metadataOrig); this.metadataIsValid = true; @@ -160,4 +164,4 @@ export class InputFEModel extends InputBEModel { return this.hasDefaultValueChanged() || this.hasRequiredChanged() || this.hasMetadataChanged(); } -}
\ No newline at end of file +} |