mirror of
https://github.com/getredash/redash.git
synced 2025-12-25 01:03:20 -05:00
React migration cleanup (#4572)
* Revisit ANGULAR_REMOVE_ME things * Remove styles related to 3rd-party Angular and jQuery libraries * Remove some more unused styles * Revisit error handling (app-wide) * Remove unused file * CR1
This commit is contained in:
@@ -3,7 +3,6 @@ import React from "react";
|
||||
|
||||
import Button from "antd/lib/button";
|
||||
import Modal from "antd/lib/modal";
|
||||
import PromiseRejectionError from "@/lib/promise-rejection-error";
|
||||
import AuthenticatedPageWrapper from "@/components/ApplicationArea/AuthenticatedPageWrapper";
|
||||
import navigateTo from "@/components/ApplicationArea/navigateTo";
|
||||
import Paginator from "@/components/Paginator";
|
||||
@@ -88,8 +87,8 @@ class QuerySnippetsList extends React.Component {
|
||||
} else {
|
||||
QuerySnippet.get({ id: querySnippetId })
|
||||
.then(this.showSnippetDialog)
|
||||
.catch((error = {}) => {
|
||||
this.props.controller.handleError(new PromiseRejectionError(error));
|
||||
.catch(error => {
|
||||
this.props.controller.handleError(error);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user