Skip to content

Commit

Permalink
Fix blank query when recalling unlinked vis, closes #105
Browse files Browse the repository at this point in the history
  • Loading branch information
Rashid Khan committed Jun 2, 2014
1 parent 2ff4891 commit 7407767
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/kibana/apps/visualize/controllers/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ define(function (require) {

return savedVisualizations.get($route.current.params)
.catch(courier.redirectWhenMissing({
'index-pattern': '/settings',
//'index-pattern': '/visualize',
'*': '/visualize'
}));
}
Expand Down Expand Up @@ -65,8 +65,6 @@ define(function (require) {

if ($state.query) {
vis.searchSource.set('query', $state.query);
} else {
vis.searchSource.set('query', null);
}

$scope.vis = vis;
Expand Down

0 comments on commit 7407767

Please sign in to comment.