Prevent hiding of fields when clicking on an index twice

This commit is contained in:
lukasolson 2014-12-01 15:48:47 -07:00
parent c6a3313f67
commit 24c4fd73f4

View file

@ -35,9 +35,9 @@ define(function (require) {
$state.save();
};
if (!$state.tab) {
$scope.changeTab($scope.fieldTypes[0]);
}
$scope.$watch('state.tab', function (tab) {
if (!tab) $scope.changeTab($scope.fieldTypes[0]);
});
$scope.conflictFields = _.filter($scope.indexPattern.fields, {type: 'conflict'});