From 3bd259c5d202eae5388e8d375bad693e440af69b Mon Sep 17 00:00:00 2001 From: Dauren777 Date: Wed, 24 Jun 2026 07:43:20 +0000 Subject: [PATCH] =?UTF-8?q?v6:=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20rowId=20=E2=80=94=20=D1=82=D0=B5=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D1=8C=20=D0=B1=D0=B5=D1=80=D1=91=D1=82=20=D0=9A?= =?UTF-8?q?=D0=90=D0=A2=D0=9E=20=D0=B8=D0=B7=20=D0=B7=D0=B0=D0=B3=D0=BE?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2=D0=BA=D0=B0=20=D0=BA=D0=BE=D0=BB=D0=BE=D0=BD?= =?UTF-8?q?=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index 52a43a5..b24580d 100644 --- a/index.html +++ b/index.html @@ -173,9 +173,9 @@ function detectColumn(name) { return null; } -function rowId(row, idx) { +function rowId(row, idx, headers) { const katoCol = dataColumns.indexOf('kato'); - if (katoCol !== -1 && row[dataColumns[katoCol]]) return String(row[dataColumns[katoCol]]).trim(); + if (katoCol !== -1 && row[headers[katoCol]]) return String(row[headers[katoCol]]).trim(); return 'row_' + idx; } @@ -470,7 +470,7 @@ function handleFile(file) { allData = rows.map((r, idx) => { const obj = {}; headers.forEach((h, i) => { obj[h] = r[i] != null ? r[i] : ''; }); - obj._id = rowId(obj, idx); + obj._id = rowId(obj, idx, headers); return obj; }); allData.columns = headers;