Eslint error cleanup (#10657)

* moving two console errors to logger errors

* nixing unused map index

* nixing unused param

* linting

* changing an alert to a toast

* fixing tests

* lint fix

* one letter change, just to see if iti gets CI to pass this test.
This commit is contained in:
Evan Rusackas
2020-08-24 14:04:27 -07:00
committed by GitHub
parent 9461f9c1e0
commit fdfb7cdfd2
7 changed files with 45 additions and 18 deletions

View File

@@ -17,6 +17,7 @@
* under the License.
*/
import React, { useEffect } from 'react';
import { logging } from '@superset-ui/core';
interface ImageLoaderProps
extends React.DetailedHTMLProps<
@@ -48,7 +49,7 @@ export default function ImageLoader({
}
})
.catch(e => {
console.error(e); // eslint-disable-line no-console
logging.error(e);
setImgSrc(fallback);
});
}