narrow stale selection guard to only skip clearing for uploaded files
This commit is contained in:
parent
1d06e2f54c
commit
fbcd111a70
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue