From f955b72d471f0f41ab01232aa3709c0391b0bed3 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 11 Feb 2026 02:49:29 +0000
Subject: [PATCH] =aha - probably fixed the upload manager overwriting bug!
---
assets/js/concise/CRUD.js | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/assets/js/concise/CRUD.js b/assets/js/concise/CRUD.js
index b7b88fb..0eabf79 100644
--- a/assets/js/concise/CRUD.js
+++ b/assets/js/concise/CRUD.js
@@ -12,7 +12,6 @@
this.error = window.jvbError;
this.populate = window.jvbPopulate;
this.cache = new window.jvbCache(this.content);
- this.uploadedFields = new Set(); //tracks which upload fields are currently uploading; so don't send any of these changes to server
this.activeItem = null;
this.isTimeline = false;
@@ -356,7 +355,6 @@
const fieldName = data.field.config.name;
const itemId = data.field.config.itemID;
if (itemId && fieldName) {
- this.uploadedFields.add(`${itemId}_${fieldName}`);
if (this.changes.has(itemId)) {
delete this.changes.get(itemId)[fieldName];
}
@@ -819,13 +817,6 @@
}
this.changes.get(itemId)[name] = value;
- for (const key of this.uploadedFields) {
- const [itemId, fieldName] = key.split('_');
- if (this.changes.has(itemId)) {
- delete this.changes.get(itemId)[fieldName];
- }
- }
-
this.scheduleBackup();
//Only send actual itemIds to server. If this is a recently uploaded item, just store changes for now
if (typeof itemId === 'number' || !itemId.includes('group')) {
@@ -1251,6 +1242,7 @@
await this.handleBackup();
}
const changes = await this.changesStore.getAll();
+ console.log('Saving Changes: ', changes);
if (changes.length === 0) return;
if (title === '') {
--
Gitblit v1.10.0