mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
[Hotfix] access slice_id when slice exists (#2268)
This commit is contained in:
parent
3de2698657
commit
87582962d9
@ -62,7 +62,7 @@ class SaveModal extends React.Component {
|
||||
|
||||
let sliceName = null;
|
||||
sliceParams.action = this.state.action;
|
||||
if (this.props.slice.slice_id) {
|
||||
if (this.props.slice && this.props.slice.slice_id) {
|
||||
sliceParams.slice_id = this.props.slice.slice_id;
|
||||
}
|
||||
if (sliceParams.action === 'saveas') {
|
||||
|
Loading…
Reference in New Issue
Block a user