diff --git a/src/components/Manufacture/CommonPackEvent.js b/src/components/Manufacture/CommonPackEvent.js index 004423a..8fa4e74 100644 --- a/src/components/Manufacture/CommonPackEvent.js +++ b/src/components/Manufacture/CommonPackEvent.js @@ -1035,9 +1035,12 @@ const CommonPackEvent = props => { {Object.keys(controlGroup).map(tabNameKey => { console.log("eeee", tabNameKey); - const tabName = tabNameKey.replace(/\d+/g, ""); + let tabName = tabNameKey.replace(/\d+/g, ""); const num = tabNameKey.replace(/[^\d]/g, "").trim(); - + const tableConfigArr = config?.gdsconfigformslave.filter(row => row.sControlName === tabNameKey.trim()); + if(commonUtils.isNotEmptyArr(tableConfigArr)) { + tabName =tableConfigArr[0].showName; + } const viewProps = { ...props, viewConfigs: controlGroup[tabNameKey],