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
This commit is contained in:
Georges-Antoine Assi
2026-08-01 13:57:26 -04:00
parent b475196327
commit bcbf771d3f

View File

@@ -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 || [];