diff --git a/src/components/Common/CommonTable/index.js b/src/components/Common/CommonTable/index.js index 8c967ce..9bec1da 100644 --- a/src/components/Common/CommonTable/index.js +++ b/src/components/Common/CommonTable/index.js @@ -4877,8 +4877,8 @@ class CommonTableRc extends React.Component { props.onCopyTo(props.name, config.sActiveId, config, copyToConfig, record) return } - if (selectedRowKeys.includes(rowKeyId)) { - if (sControlName.includes('_qlyqualityinspec')) { + if (selectedRowKeys?.includes(rowKeyId)) { + if (sControlName?.includes('_qlyqualityinspec')) { const { app } = props; const { token, currentMesPane } = app; const { sModelsId } = currentMesPane || {};