Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
[web] Use uuids for non-ui code instead of randomId
Browse files Browse the repository at this point in the history
  • Loading branch information
maxijonson committed Jul 1, 2023
1 parent 882ca80 commit 2698142
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/web/src/components/CallableFunctionImport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
Stack,
Text,
} from "@mantine/core";
import { randomId } from "@mantine/hooks";
import { v4 as uuid } from "uuid";
import { BiX } from "react-icons/bi";
import TippedActionIcon from "./TippedActionIcon";
import getFunctionSignature from "../utils/getFunctionSignature";
Expand All @@ -38,9 +38,7 @@ const CallableFunctionImport = ({ onImport }: CallableFunctionImportProps) => {
return (
<CallableFunctionImportDropzone
onDrop={(fns) => {
setImportedFns(
fns.map((fn) => ({ ...fn, id: randomId() }))
);
setImportedFns(fns.map((fn) => ({ ...fn, id: uuid() })));
}}
/>
);
Expand Down

0 comments on commit 2698142

Please sign in to comment.