From 1eedbfeb988bd8157c3647d4275fc569e0df05bc Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Fri, 5 May 2017 11:47:00 +0300 Subject: [PATCH] fix: sample unavailable when no schema in response object --- lib/components/SchemaSample/schema-sample.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/components/SchemaSample/schema-sample.ts b/lib/components/SchemaSample/schema-sample.ts index c89a77e60d..a774bd911f 100644 --- a/lib/components/SchemaSample/schema-sample.ts +++ b/lib/components/SchemaSample/schema-sample.ts @@ -33,7 +33,7 @@ export class SchemaSample extends BaseComponent implements OnInit { init() { this.bindEvents(); - let base:any = {}; + let base:any = this.componentSchema; let sample; // got pointer not directly to the schema but e.g. to the response obj