Skip to content

Commit

Permalink
feat: Update code
Browse files Browse the repository at this point in the history
  • Loading branch information
nuintun committed May 12, 2024
1 parent cd93bfc commit d5a106d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/js/utils/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ export interface IRoute<M = unknown, K extends string = string> extends NIRoute<
export function parse<M = unknown, K extends string = string>(router: readonly Route<M, K>[]): Route<M, K>[] {
let uid = 0;

const routes: Route<M, K>[] = [];
const getKey = () => `${uid++}`;

const getKey = () => (uid++).toString();
const routes: Route<M, K>[] = [];

for (const route of router as IRoute<M, K>[]) {
const key = getKey();
Expand Down

0 comments on commit d5a106d

Please sign in to comment.