From 3b5abc4ab44fb899b92ea0e40e0719454c057f52 Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 11 Feb 2026 01:38:22 +0000
Subject: [PATCH] =attempt to fix race condition that overrides image changes immediately after processing them
---
assets/js/concise/CRUD.js | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/assets/js/concise/CRUD.js b/assets/js/concise/CRUD.js
index 2bbe11a..7bad8c8 100644
--- a/assets/js/concise/CRUD.js
+++ b/assets/js/concise/CRUD.js
@@ -350,6 +350,21 @@
});
}
}
+
+ 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);
+ }
+ });
+ }
});
}
initModals() {
--
Gitblit v1.10.0