🚑 Use different type of UUID

This commit is contained in:
ajnart
2022-05-23 10:23:10 +02:00
parent bf85818f8b
commit 72e08f484f
3 changed files with 1638 additions and 1631 deletions

View File

@@ -21,6 +21,7 @@ import { Apps } from 'tabler-icons-react';
import { useConfig } from '../../tools/state';
import { ServiceTypeList } from '../../tools/types';
import { AppShelfItemWrapper } from './AppShelfItemWrapper';
import { v4 as uuidv4 } from 'uuid';
export function AddItemShelfButton(props: any) {
const [opened, setOpened] = useState(false);
@@ -122,7 +123,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
const form = useForm({
initialValues: {
id: props.id ?? crypto.randomUUID(),
id: props.id ?? uuidv4(),
type: props.type ?? 'Other',
name: props.name ?? '',
icon: props.icon ?? '/favicon.svg',