Skip to content

Commit

Permalink
Merge pull request #1487 from getredash/v1fixes
Browse files Browse the repository at this point in the history
Fix #1432: delete visualization sends full visualization body instead…
  • Loading branch information
arikfr authored Dec 23, 2016
2 parents ff6bb2c + e4f1325 commit 9e5944d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions client/app/components/dynamic-table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ function DynamicTable($sanitize) {
}
};

this.sanitize = (value) => {
return $sanitize(value);
}
this.sanitize = value => $sanitize(value);

this.sortIcon = (column) => {
if (column !== this.orderByField) {
Expand Down
2 changes: 1 addition & 1 deletion client/app/pages/queries/source-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ function QuerySourceCtrl(Events, toastr, $controller, $scope, $location, $http,
AlertDialog.open(title, message, confirm).then(() => {
Events.record('delete', 'visualization', vis.id);

Visualization.delete(vis, () => {
Visualization.delete({ id: vis.id }, () => {
if ($scope.selectedTab === vis.id) {
$scope.selectedTab = DEFAULT_TAB;
$location.hash($scope.selectedTab);
Expand Down

0 comments on commit 9e5944d

Please sign in to comment.