Skip to content

Commit 9c5436c

Browse files
committed
feat(templating): set default sort order
1 parent e348822 commit 9c5436c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

public/app/features/templating/editorCtrl.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ function (angular, _) {
123123
$scope.currentIsNew = false;
124124
$scope.mode = 'edit';
125125

126+
$scope.current.sort = $scope.current.sort || replacementDefaults.sort;
126127
if ($scope.current.datasource === void 0) {
127128
$scope.current.datasource = null;
128129
$scope.current.type = 'query';

0 commit comments

Comments
 (0)