Skip to content

Commit

Permalink
fix(dataset): retain is_dttm if set on metadata sync (#16776)
Browse files Browse the repository at this point in the history
  • Loading branch information
villebro committed Sep 22, 2021
1 parent a743526 commit 1d5100d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions superset-frontend/src/datasource/DatasourceEditor.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -464,13 +464,13 @@ class DatasourceEditor extends React.PureComponent {
results.added.push(col.name);
} else if (
currentCol.type !== col.type ||
currentCol.is_dttm !== col.is_dttm
(!currentCol.is_dttm && col.is_dttm)
) {
// modified column
finalColumns.push({
...currentCol,
type: col.type,
is_dttm: col.is_dttm,
is_dttm: currentCol.is_dttm || col.is_dttm,
});
results.modified.push(col.name);
} else {
Expand Down

0 comments on commit 1d5100d

Please sign in to comment.