From 2f259f0578d5cc258856f4fed4fd8fc833a79fbb Mon Sep 17 00:00:00 2001 From: SamTV12345 <40429738+samtv12345@users.noreply.github.com> Date: Mon, 8 Sep 2025 20:11:45 +0200 Subject: [PATCH] chore: fix minor issue on admin retrieval --- src/node/hooks/express/admin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node/hooks/express/admin.ts b/src/node/hooks/express/admin.ts index ca0f48668..7e9e6316b 100644 --- a/src/node/hooks/express/admin.ts +++ b/src/node/hooks/express/admin.ts @@ -57,7 +57,7 @@ exports.expressCreateServer = (hookName: string, args: ArgsExpressType, cb: Func } // if is a directory search for index file matching the extension - if (fs.statSync(pathname).isDirectory()) { + if (exist && fs.statSync(pathname).isDirectory()) { pathname = pathname + '/index.html'; ext = path.parse(pathname).ext; }