diff --git a/src/components/FolderPicker.vue b/src/components/FolderPicker.vue
index b987ace..af71b6f 100644
--- a/src/components/FolderPicker.vue
+++ b/src/components/FolderPicker.vue
@@ -68,7 +68,8 @@
{{ current }}
-
@@ -91,6 +92,11 @@ const parent = ref(null)
const loading = ref(false)
const error = ref('')
+// FIX : la regex /\/+$/ dans un @click inline fait planter le parser Vue
+function selectCurrent() {
+ emit('select', current.value.replace(/\/+$/, '') || '/')
+}
+
function joinPath(base: string, name: string): string {
if (base === '/') return `/${name}`
const cleanBase = base.endsWith('/') ? base.slice(0, -1) : base