📝 Clarify file change handling and remove redundant file loading logic
This commit is contained in:
@@ -518,7 +518,7 @@ async function loadFile() {
|
||||
}
|
||||
|
||||
function onFileChange() {
|
||||
// Clear state
|
||||
// Clear state when file selection changes
|
||||
searchQuery.value = '';
|
||||
searchResults.value = [];
|
||||
currentResultIndex.value = 0;
|
||||
@@ -526,8 +526,8 @@ function onFileChange() {
|
||||
filterValue.value = '';
|
||||
selectedLines.value.clear();
|
||||
jsonPaths.value = [];
|
||||
|
||||
loadFile();
|
||||
// File loading is handled by the watch() on selectedFile
|
||||
}
|
||||
}
|
||||
|
||||
const onSearchInput = debounce(async () => {
|
||||
|
||||
Reference in New Issue
Block a user