diff --git a/superset/assets/javascripts/explorev2/components/SaveModal.js b/superset/assets/javascripts/explorev2/components/SaveModal.js index 2956f37ebb59c..46a99e38e1c54 100644 --- a/superset/assets/javascripts/explorev2/components/SaveModal.js +++ b/superset/assets/javascripts/explorev2/components/SaveModal.js @@ -26,7 +26,7 @@ class SaveModal extends React.Component { newSliceName: '', dashboards: [], alert: null, - action: 'saveas', + action: props.can_overwrite ? 'overwrite' : 'saveas', addToDash: 'noSave', }; }