From 2871bba37920ec6cc18da23971294a146e238a72 Mon Sep 17 00:00:00 2001 From: Master-Guy <566429+Master-Guy@users.noreply.github.com> Date: Thu, 17 Mar 2022 22:25:30 +0100 Subject: [PATCH] Review comments by ApamNapat --- src/Terminal/commands/ls.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Terminal/commands/ls.tsx b/src/Terminal/commands/ls.tsx index 409822683..7bf1200cf 100644 --- a/src/Terminal/commands/ls.tsx +++ b/src/Terminal/commands/ls.tsx @@ -139,12 +139,9 @@ export function ls( }), )(); - console.log(row); - const rowSplit = row.split("~"); let rowSplitArray = rowSplit.map((x) => [x.trim(), x.replace(x.trim(), "")]); - console.log(rowSplitArray); - rowSplitArray = rowSplitArray.filter((x) => !!x); + rowSplitArray = rowSplitArray.filter((x) => !!x[0]); function onScriptLinkClick(filename: string): void { if (player.getCurrentServer().hostname !== hostname) {