mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
[Hotfix] access slice_id when slice exists (#2268)
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user