From 31937e948e6f4145c2cb8dbc1047833533a3769e Mon Sep 17 00:00:00 2001 From: MARCROCK22 <57925328+MARCROCK22@users.noreply.github.com> Date: Fri, 22 Mar 2024 17:42:25 -0400 Subject: [PATCH] router --- src/api/Router.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/Router.ts b/src/api/Router.ts index ffd6f30..bd928b5 100644 --- a/src/api/Router.ts +++ b/src/api/Router.ts @@ -29,7 +29,7 @@ export class Router { return this.createProxy([...route, key]); }, apply: (...[, _, args]) => { - return this.createProxy([...route, ...args.filter(x => x != null)]); + return this.createProxy([...route, ...args]); }, }) as unknown as APIRoutes; } @@ -57,7 +57,7 @@ export const CDNRouter = { return this.createProxy([...route, key]); }, apply: (...[, _, args]) => { - return this.createProxy([...route, ...args.filter(x => x != null)]); + return this.createProxy([...route, ...args]); }, }) as unknown as CDNRoute; },