Skip to content

Commit

Permalink
fix(server): use Math.random instead of nanoid (#20860)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lodin authored Jan 16, 2025
1 parent 66443d4 commit ae42659
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* the License.
*/
/// <reference lib="es2018" />
import { nanoid } from 'nanoid';
import { Flow as _Flow } from 'Frontend/generated/jar-resources/Flow.js';
import React, { useCallback, useEffect, useReducer, useRef, useState, type ReactNode } from 'react';
import { matchRoutes, useBlocker, useLocation, useNavigate, type NavigateOptions, useHref } from 'react-router';
Expand Down Expand Up @@ -327,7 +326,7 @@ function Flow() {
(event: CustomEvent<PortalEntry>) => {
event.preventDefault();

const key = nanoid();
const key = Math.random().toString(36).slice(2);
dispatchPortalAction(
addFlowPortal(
<FlowPortal
Expand Down

0 comments on commit ae42659

Please sign in to comment.