Revert "narrow stale selection guard to only skip clearing for uploaded files"

This reverts commit fbcd111a70.
This commit is contained in:
Roland Tannous 2026-03-09 16:51:30 +00:00
commit ae89101e81

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 (uploadedFile.includes("/dataset-uploads/")) return;
if (isLikelyLocalDatasetRef(uploadedFile)) return;
selectLocalDataset(null);
}, [
datasetSource,