Skip to content

Commit 0d21e13

Browse files
committed
hotfix: task function
1 parent 3b5e02e commit 0d21e13

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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)