Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Fix upload tags to always use current selection when upload starts
Murtaza Nasir838962761a72
diff --git a/static/js/modules/composables/upload.js b/static/js/modules/composables/upload.jsindex b349b509..18ff2e8b 100644--- a/static/js/modules/composables/upload.js+++ b/static/js/modules/composables/upload.js@@ -146,18 +146,14 @@ export function useUpload(state, utils) {// AND change their status to 'ready' so they move to upload progress immediatelyfor (const item of uploadQueue.value) {if (item.status === 'queued') {- // Only update tags if not already set- if (!item.tags || item.tags.length === 0) {- item.tags = [...selectedTags.value];- }- // Only update ASR options if not already set- if (!item.asrOptions || !item.asrOptions.language) {- item.asrOptions = {- language: asrLanguage.value,- min_speakers: asrMinSpeakers.value,- max_speakers: asrMaxSpeakers.value- };- }+ // Always use the CURRENT tag selection - override whatever was captured at add time+ item.tags = [...selectedTags.value];+ // Always use the CURRENT ASR options+ item.asrOptions = {+ language: asrLanguage.value,+ min_speakers: asrMinSpeakers.value,+ max_speakers: asrMaxSpeakers.value+ };// Change status to 'ready' to remove from upload view but keep in queueitem.status = 'ready';}