mirror of
https://github.com/wavetermdev/waveterm
synced 2026-05-23 08:48:28 +00:00
refactor: clean up debug log messages
This commit is contained in:
parent
5da3257031
commit
76c909114e
1 changed files with 0 additions and 11 deletions
|
|
@ -319,7 +319,6 @@ function TableBody({ table, cwd, focusIndex, enter, setFocusIndex, setFileName }
|
|||
React.useEffect(() => {
|
||||
const selected = (table.getSortedRowModel()?.flatRows[focusIndex]?.getValue("path") as string) ?? null;
|
||||
if (selected != null) {
|
||||
console.log("yipee");
|
||||
const fullPath = cwd.concat("/", selected);
|
||||
setFileName(fullPath);
|
||||
}
|
||||
|
|
@ -402,12 +401,6 @@ function DirectoryPreview({ fileNameAtom }: DirectoryPreviewProps) {
|
|||
break;
|
||||
case "Enter":
|
||||
e.preventDefault();
|
||||
console.log("enter thinks focus Index is ", focusIndex);
|
||||
let newFileName = content[focusIndex].path;
|
||||
console.log(
|
||||
"enter thinks contents are",
|
||||
content.slice(0, focusIndex + 1).map((fi) => fi.path)
|
||||
);
|
||||
setEnter((current) => !current);
|
||||
/*
|
||||
const fullPath = fileName.concat("/", newFileName);
|
||||
|
|
@ -420,10 +413,6 @@ function DirectoryPreview({ fileNameAtom }: DirectoryPreviewProps) {
|
|||
[content, focusIndex, setEnter]
|
||||
);
|
||||
|
||||
React.useEffect(() => {
|
||||
console.log(focusIndex);
|
||||
}, [focusIndex]);
|
||||
|
||||
React.useEffect(() => {
|
||||
document.addEventListener("keydown", handleKeyDown);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue