mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
Do not add slice_name when slice doesn't exist (#2265)
This commit is contained in:
parent
3a758900eb
commit
4d900c9ee1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user