From 14a31758161615b65ef48c2d840ff834461cc104 Mon Sep 17 00:00:00 2001 From: cvancau Date: Sun, 9 Aug 2026 19:40:24 +0200 Subject: [PATCH] Actualiser src/features/menu/index.jsx --- src/features/menu/index.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/features/menu/index.jsx b/src/features/menu/index.jsx index 63806ee..fe6045d 100644 --- a/src/features/menu/index.jsx +++ b/src/features/menu/index.jsx @@ -63,6 +63,9 @@ export default function Menu() { .join(' ') ); const parsedStoreData = return_store_from_file(rawSysExBytes); + if (!parsedStoreData.patch.name.trim()) { + parsedStoreData.patch.name = '------------'; + } console.log('[MIDI] patch décodé:', parsedStoreData.patch); console.log('[MIDI] entités:', Object.keys(parsedStoreData)); // Injection explicite sous forme de tableau d'entités @@ -103,9 +106,6 @@ export default function Menu() { useEffect(() => { if (file) { dispatch(parameterFromFile(return_store_from_file(file))); - if (!parsedStoreData.patch.name.trim()) { - parsedStoreData.patch.name = '------------'; - } } }, [file, dispatch]);