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 | 14 +++++---------
1 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/assets/js/concise/CRUD.js b/assets/js/concise/CRUD.js
index 7bad8c8..0eabf79 100644
--- a/assets/js/concise/CRUD.js
+++ b/assets/js/concise/CRUD.js
@@ -354,16 +354,11 @@
if (event === 'sent-to-queue' && data.field) {
const fieldName = data.field.config.name;
const itemId = data.field.config.itemID;
- if (itemId && fieldName && this.changes.has(itemId)) {
- delete this.changes.get(itemId)[fieldName];
- }
- // Also clear from IndexedDB store
- this.changesStore.get(itemId).then(stored => {
- if (stored && stored[fieldName] !== undefined) {
- delete stored[fieldName];
- this.changesStore.save(stored);
+ if (itemId && fieldName) {
+ if (this.changes.has(itemId)) {
+ delete this.changes.get(itemId)[fieldName];
}
- });
+ }
}
});
}
@@ -1247,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