Refactor taskId assignment in getExecutorComments.ts to convert it to a Number for improved data handling
This commit is contained in:
parent
d5b00df9e8
commit
fa22de9dff
|
|
@ -89,7 +89,7 @@ export function pullExecutorAnswers(): void {
|
|||
|
||||
for (let i = 1; i < reportData.length; i++) {
|
||||
const row = reportData[i];
|
||||
const taskId = String(row[reportCol['ID задачи']] || '').trim();
|
||||
const taskId = Number(String(row[reportCol['ID задачи']] || '').trim());
|
||||
if (!taskId) continue;
|
||||
|
||||
const answer = taskAnswers[taskId];
|
||||
|
|
|
|||
Loading…
Reference in New Issue