Skip to content

Commit cd97913

Browse files
authored
Merge pull request #1267 from xieliuduo/dev27-hotfixTask
hotfix: getRuntimeDateLevelFields for task function
2 parents 3b5e02e + d75afd5 commit cd97913

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

frontend/src/app/pages/DashBoardPage/utils/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,6 @@ export const getControllerDateValues = (obj: {
319319
const isStart = !obj.execute;
320320
const time = getTime(+(direction + amount), unit)(unit, isStart);
321321
timeValues[1] = time.format(TIME_FORMATTER);
322-
debugger;
323322
}
324323
}
325324

frontend/src/app/utils/chartHelper.ts

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1587,13 +1587,12 @@ export const getChartsAllRows = (configs?: ChartDataConfig[]) => {
15871587
};
15881588

15891589
export const getRuntimeDateLevelFields = (rows: any) => {
1590-
const _rows = updateBy(rows, draft => {
1591-
draft?.forEach((v, i) => {
1592-
const symbolData = v?.[RUNTIME_DATE_LEVEL_KEY];
1593-
if (symbolData) {
1594-
draft[i] = symbolData;
1595-
}
1596-
});
1590+
const _rows = CloneValueDeep(rows);
1591+
_rows?.forEach((v, i) => {
1592+
const symbolData = v?.[RUNTIME_DATE_LEVEL_KEY];
1593+
if (symbolData) {
1594+
_rows[i] = symbolData;
1595+
}
15971596
});
15981597
return _rows;
15991598
};

0 commit comments

Comments
 (0)