From 88d9e0e2b7997eb0c96dc737082c91b4e3f7ca6e Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Wed, 17 Jun 2026 15:10:37 +0000
Subject: [PATCH] =Fixed for single image upload fields populating the image meta. Need to check galleries now.

---
 assets/js/concise/Queue.js |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/assets/js/concise/Queue.js b/assets/js/concise/Queue.js
index 1122684..e1f1a04 100644
--- a/assets/js/concise/Queue.js
+++ b/assets/js/concise/Queue.js
@@ -31,6 +31,7 @@
 		this.initElements();
 		this.initListeners();
 		this.initStore();
+
 		if (this.canUpdateUI && this.ui.panel) {
 			this.popup = window.jvbPopup.registerPopup({
 				popup: this.ui.panel,
@@ -408,6 +409,7 @@
 	 OPERATIONS
 	****************************************************************************/
 	addToQueue(operation) {
+		console.log(operation, 'Adding to queue:');
 		const item = {
 			id: `u${this.user}_${Date.now()}_${Math.random().toString(36).substring(2, 9)}`,
 			endpoint: null,
@@ -616,12 +618,12 @@
 					body: requestBody
 				}
 			);
-			console.log('Sending request with data: ', req);
+			// console.log('Sending request with data: ', req);
 			const result = await response.json();
 			if (skip) {
 				operation.data = {};
 			}
-			console.log('Result: ', result);
+			// console.log('Result: ', result);
 			if (response.ok && result.success) {
 				this.notify('sent-to-server', req);
 				if (result.id && operation.id !== result.id) {
@@ -788,7 +790,8 @@
 			this.ui.refresh.button.classList.add('fetching');
 			this.store.clearCache();
 			let response = await this.store.fetch();
-			if (response.status === 429) {
+
+			if (Object.hasOwn(response, 'status') && response.status === 429) {
 				console.log('Too many requests. Waiting 30 seconds');
 				this.stopPolling();
 				this.startCountdown(30, () => this.runPollCycle());

--
Gitblit v1.10.0