diff --git a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js index 2e2b01708..dfe6af833 100644 --- a/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js +++ b/public/react/src/modules/tpm/TPMsettings/Shixuninformation.js @@ -841,7 +841,7 @@ class Shixuninformation extends Component { > { - this.props.data === undefined ? "" : this.props.shixunsDetails.is_jupyter === true?this.props.data.shixun&&this.props.data.shixun.main_type.map((item, key) => { + this.props.data === undefined ? "" : this.props.shixunsDetails&&this.props.shixunsDetails.is_jupyter === true?this.props.data.shixun&&this.props.data.shixun.main_type.map((item, key) => { let itemtype=item.type_name.toLowerCase().indexOf('jupyter'.toLowerCase()) if(itemtype>-1) { return ( @@ -856,7 +856,7 @@ class Shixuninformation extends Component { } { - this.props.data === undefined ? "" : this.props.shixunsDetails.is_jupyter === false?this.props.data.shixun&&this.props.data.shixun.main_type.map((item, key) => { + this.props.data === undefined ? "" : this.props.shixunsDetails&&this.props.shixunsDetails.is_jupyter === false?this.props.data.shixun&&this.props.data.shixun.main_type.map((item, key) => { let itemtype=item.type_name.toLowerCase().indexOf('jupyter'.toLowerCase()) if(itemtype===-1) { return (