From bcbf771d3fb1284add2e1af35d3c8b792cb18235 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Sat, 1 Aug 2026 13:57:26 -0400 Subject: [PATCH] fix(settings): refresh filesystem folders when opening folder mappings The folder-mapping table lists FS_PLATFORMS from the heartbeat snapshot taken at app init, so a folder created after that only showed up after a full page reload. Refetch the heartbeat when the section mounts. Fixes #4035 --- frontend/src/v2/components/Settings/FolderMappingsSection.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/v2/components/Settings/FolderMappingsSection.vue b/frontend/src/v2/components/Settings/FolderMappingsSection.vue index 7b30af4f7..467ba0c4c 100644 --- a/frontend/src/v2/components/Settings/FolderMappingsSection.vue +++ b/frontend/src/v2/components/Settings/FolderMappingsSection.vue @@ -306,6 +306,10 @@ const initialLoading = ref(false); onMounted(async () => { initialLoading.value = true; loading.value = true; + // FS_PLATFORMS is snapshotted into the heartbeat at app init, so folders + // created since then would only appear after a full page reload. Refresh + // it in the background whenever the section mounts. + heartbeat.fetchHeartbeat().catch(() => {}); try { const { data } = await platformApi.getSupportedPlatforms(); supportedPlatforms.value = data || [];