From a2bd1e691241d2f7f9fe7f8e7568d7b1b2bc41fd Mon Sep 17 00:00:00 2001 From: Daniel <50356015+danny007in@users.noreply.github.com> Date: Tue, 2 May 2023 15:05:51 +0530 Subject: [PATCH] convertPathToHtml improve --- src/utils/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/index.js b/src/utils/index.js index 4230cec1b..082e818f2 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -5,19 +5,19 @@ function convertPathToHtml(path) { path = path.slice(3) } - if (count === 2) { + if (count === 1) { return '.' } - if (count === 3) { + if (count === 2) { return '..' } - if (count === 4) { + if (count === 3) { return '../..' } - if (count === 5) { + if (count === 4) { return '../../..' }