diff --git a/app-author-search/src/app/app.component.ts b/app-author-search/src/app/app.component.ts index 79cf42e..b7b9cd4 100644 --- a/app-author-search/src/app/app.component.ts +++ b/app-author-search/src/app/app.component.ts @@ -248,7 +248,7 @@ export class AppComponent implements OnInit { this.searchJson = res; this.setDisplayData(); //総数を設定する - this.total = this.searchJson.hits.total; + this.total = this.searchJson.hits.total.value; if (this.total == 0) { this.searchZero = true; this.numberFrom = 0; diff --git a/app-items-author-search/src/app/app.component.ts b/app-items-author-search/src/app/app.component.ts index ce34a21..3560659 100644 --- a/app-items-author-search/src/app/app.component.ts +++ b/app-items-author-search/src/app/app.component.ts @@ -183,7 +183,7 @@ export class AppComponent implements OnInit { this.searchJson = res; this.setDisplayData(); //総数を設定する - this.total = this.searchJson.hits.total; + this.total = this.searchJson.hits.total.value; if(this.total == 0){ this.searchZero = true; this.numberFrom = 0;