fix: use FeatureFlags in @superset-ui/core (#13679)

This commit is contained in:
Jesse Yang
2021-03-18 09:13:50 -07:00
committed by GitHub
parent 08d0deb720
commit 69a5ed9a1e
2 changed files with 12 additions and 41 deletions

View File

@@ -22,8 +22,16 @@ import { SupersetClient } from '@superset-ui/core';
import {
getClientErrorObject,
ClientErrorObject,
} from '../utils/getClientErrorObject';
import setupErrorMessages from './setupErrorMessages';
} from 'src/utils/getClientErrorObject';
import setupErrorMessages from 'src/setup/setupErrorMessages';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
declare global {
interface Window {
$: any;
jQuery: any;
}
}
function showApiMessage(resp: ClientErrorObject) {
const template =