fix: SQL -> Explore Overwrite flow (#13946)

This commit is contained in:
Hugh A. Miles II
2021-04-05 14:52:04 -04:00
committed by GitHub
parent 31b14dcc88
commit f291ba05c6
2 changed files with 3 additions and 6 deletions

View File

@@ -314,6 +314,8 @@ class DatasetRestApi(BaseSupersetModelRestApi):
changed_model = UpdateDatasetCommand(
g.user, pk, item, override_columns
).run()
if override_columns:
RefreshDatasetCommand(g.user, pk).run()
response = self.response(200, id=changed_model.id, result=item)
except DatasetNotFoundError:
response = self.response_404()