narrow stale selection guard to only skip clearing for uploaded files
This commit is contained in:
parent
8d81c991f8
commit
7825558f1b
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