narrow stale selection guard to only skip clearing for uploaded files

This commit is contained in:
Roland Tannous 2026-03-09 14:01:02 +00:00
commit 7825558f1b

View file

@ -293,7 +293,7 @@ export function DatasetSection() {
if (!uploadedFile) return;
if (selectedLocalDataset) return;
// Don't clear if this is a direct file upload (not a recipe directory)
if (isLikelyLocalDatasetRef(uploadedFile)) return;
if (uploadedFile.includes("/dataset-uploads/")) return;
selectLocalDataset(null);
}, [
datasetSource,