mirror of
https://github.com/apache/superset.git
synced 2026-04-27 03:55:47 +00:00
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:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user