From 62b5dcef00e6230ec8674d3de65617216e760e51 Mon Sep 17 00:00:00 2001 From: whoswhip Date: Mon, 19 Jan 2026 23:15:15 -0500 Subject: [PATCH] fix: correct syntax selection logic for file drag and drop handling --- SharpbinV3.Client/src/routes/+page.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SharpbinV3.Client/src/routes/+page.svelte b/SharpbinV3.Client/src/routes/+page.svelte index 44d74a0..c34f8d6 100644 --- a/SharpbinV3.Client/src/routes/+page.svelte +++ b/SharpbinV3.Client/src/routes/+page.svelte @@ -231,8 +231,7 @@ const syntax = syntaxFromExtension(file.name.split('.').pop() || ''); if (syntax && selectedSyntax !== syntax) { selectedSyntax = syntax; - } - else (!syntax && selectedSyntax !== 'plaintext') { + } else if (!syntax && selectedSyntax !== 'plaintext') { selectedSyntax = 'plaintext'; } title = file.name;