delete item, remove from list fix + restore history

This commit is contained in:
2024-03-03 14:25:53 +01:00
parent 960fbf80fb
commit b363c5d752
2 changed files with 31 additions and 5 deletions

View File

@ -1,4 +1,4 @@
function handleFileUpload(event) {
function handleFileUpload() {
const file = document.getElementById('inputGroupFile01').files[0];
const reader = new FileReader();
@ -6,7 +6,6 @@ function handleFileUpload(event) {
const rawData = e.target.result;
var blocks = rawData.split('#####');
blocks.shift() // 1st element is empty
console.log(blocks);
var data = {};
blocks.forEach(function (block) {
const split = block.indexOf('\n');