From e35fb669a2c3699d3d63af1af54e9b0d4dd5828a Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Mon, 11 Dec 2023 08:39:30 -0300 Subject: [PATCH] [KiRi][Fixed] Problems with subsheets sharing the same file name - Needs important changes in the generation of the SVGs --- kibot/resources/kiri/kiri.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/kibot/resources/kiri/kiri.js b/kibot/resources/kiri/kiri.js index 3ae9bd45..00b6448c 100644 --- a/kibot/resources/kiri/kiri.js +++ b/kibot/resources/kiri/kiri.js @@ -744,16 +744,14 @@ function update_sheets_list(commit1, commit2) { for (const d of data1) { - sheet = d.split("|")[0]; - sheets.push(sheet); + sheets.push(d); } for (const d of data2) { - sheet = d.split("|")[0]; - if (! sheets.includes(sheet)) + if (! sheets.includes(d)) { - sheets.push(sheet); + sheets.push(d); } } @@ -765,13 +763,16 @@ function update_sheets_list(commit1, commit2) { var new_sheets_list = []; var form_inputs_html; - for (const sheet of sheets) + for (const d of sheets) { + var splitted = d.split("|"); + var visible_sheet = splitted[3]; + var sheet = splitted[4]; var input_html = ` `;