style: eslint curly rule (#11913)

* style: eslint curly rule

* curly for ts
This commit is contained in:
Evan Rusackas
2020-12-03 10:20:05 -08:00
committed by GitHub
parent 8c063efa75
commit 38b720b0a7
6 changed files with 24 additions and 11 deletions

View File

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