mirror of
https://github.com/apache/superset.git
synced 2026-04-12 20:57:55 +00:00
Do not add slice_name when slice doesn't exist (#2265)
This commit is contained in:
@@ -139,13 +139,15 @@ class SaveModal extends React.Component {
|
||||
/>
|
||||
</Alert>
|
||||
}
|
||||
<Radio
|
||||
disabled={!this.props.can_overwrite}
|
||||
checked={this.state.action === 'overwrite'}
|
||||
onChange={this.changeAction.bind(this, 'overwrite')}
|
||||
>
|
||||
{`Overwrite slice ${this.props.slice.slice_name}`}
|
||||
</Radio>
|
||||
{this.props.slice &&
|
||||
<Radio
|
||||
disabled={!this.props.can_overwrite}
|
||||
checked={this.state.action === 'overwrite'}
|
||||
onChange={this.changeAction.bind(this, 'overwrite')}
|
||||
>
|
||||
{`Overwrite slice ${this.props.slice.slice_name}`}
|
||||
</Radio>
|
||||
}
|
||||
|
||||
<Radio
|
||||
inline
|
||||
|
||||
Reference in New Issue
Block a user