mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
style: eslint curly rule (#11913)
* style: eslint curly rule * curly for ts
This commit is contained in:
@@ -421,18 +421,21 @@ class DatasourceEditor extends React.PureComponent {
|
||||
SupersetClient.get({ endpoint })
|
||||
.then(({ json }) => {
|
||||
const results = this.updateColumns(json);
|
||||
if (results.modified.length)
|
||||
if (results.modified.length) {
|
||||
this.props.addSuccessToast(
|
||||
t('Modified columns: %s', results.modified.join(', ')),
|
||||
);
|
||||
if (results.removed.length)
|
||||
}
|
||||
if (results.removed.length) {
|
||||
this.props.addSuccessToast(
|
||||
t('Removed columns: %s', results.removed.join(', ')),
|
||||
);
|
||||
if (results.added.length)
|
||||
}
|
||||
if (results.added.length) {
|
||||
this.props.addSuccessToast(
|
||||
t('New columns added: %s', results.added.join(', ')),
|
||||
);
|
||||
}
|
||||
this.props.addSuccessToast(t('Metadata has been synced'));
|
||||
this.setState({ metadataLoading: false });
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user