diff options
author | Anjali walsatwar <anjali.walsatwar@huawei.com> | 2018-09-26 10:59:01 +0530 |
---|---|---|
committer | Idan Amit <ia096e@intl.att.com> | 2018-09-26 10:12:01 +0000 |
commit | 30152286995d1d48c0ec8049b5704540c015bbc5 (patch) | |
tree | 5f98008d6160ed842c988e8af2c5446af1b30961 /catalog-ui/src/app | |
parent | 3f588176962a6372e45eb143dc8c2855237d1beb (diff) |
console exception comming in add Artifact page
Issue-ID: SDC-1792
Change-Id: Idf4fece6b9a5f81501c414b1ffa08934e312be00
Signed-off-by: Anjali walsatwar <anjali.walsatwar@huawei.com>
Diffstat (limited to 'catalog-ui/src/app')
-rw-r--r-- | catalog-ui/src/app/view-models/forms/artifact-form/artifact-form-view-model.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/catalog-ui/src/app/view-models/forms/artifact-form/artifact-form-view-model.ts b/catalog-ui/src/app/view-models/forms/artifact-form/artifact-form-view-model.ts index a09e30c330..45ebb12351 100644 --- a/catalog-ui/src/app/view-models/forms/artifact-form/artifact-form-view-model.ts +++ b/catalog-ui/src/app/view-models/forms/artifact-form/artifact-form-view-model.ts @@ -236,7 +236,7 @@ export class ArtifactResourceFormViewModel { this.$scope.editArtifactResourceModel.artifactResource.timeout = this.$scope.defaultHeatTimeout; } - if (this.$scope.editArtifactResourceModel.artifactFile.filename) { + if (this.$scope.editArtifactResourceModel.artifactFile && this.$scope.editArtifactResourceModel.artifactFile.filename) { this.$scope.editArtifactResourceModel.artifactFile = {}; this.$scope.forms.editForm.myArtifactFile.$setValidity('required', false); } |