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

This reverts commit 7825558f1b.
This commit is contained in:
Roland Tannous 2026-03-09 16:51:30 +00:00
commit 0d26de7d50

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,