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:
Levko Kravets
2020-01-22 17:15:25 +02:00
committed by GitHub
parent c92bb63f8b
commit cbc56264ea
65 changed files with 412 additions and 2077 deletions

View File

@@ -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);
});
}
}