Fix incorrect property access

This commit is contained in:
Matthew Bargar 2016-03-18 16:52:42 -04:00
parent c450934d8f
commit f83c4fdbff

View file

@ -25,8 +25,8 @@ module.directive('patternChecker', function () {
$http.post(chrome.addBasePath(`/api/kibana/${this.pattern}/_count`))
.then(
(response) => {
this.resultCount = response.count;
this.isValidated = !!response.count;
this.resultCount = response.data.count;
this.isValidated = !!response.data.count;
},
(error) => {
if (error.status === 404) {