Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Fix missing openAsrDropdownIndex ref in app state

Murtaza Nasir6bf49b005287
diff --git a/static/js/app.modular.js b/static/js/app.modular.js
index 8091f525..41e92975 100644
--- a/static/js/app.modular.js
+++ b/static/js/app.modular.js
@@ -352,6 +352,8 @@ document.addEventListener('DOMContentLoaded', async () => {
// --- Dropdown Positioning ---
const dropdownPositions = ref({});
+ // Single-ref dropdown tracking for ASR editor (performance optimization)
+ const openAsrDropdownIndex = ref(null);
// --- App Configuration ---
const useAsrEndpoint = ref(false);
@@ -503,6 +505,7 @@ document.addEventListener('DOMContentLoaded', async () => {
// Dropdown Positioning
dropdownPositions,
+ openAsrDropdownIndex,
// App Config
useAsrEndpoint, currentUserName, canDeleteRecordings, enableInternalSharing, enableArchiveToggle, showUsernamesInUI,