🚑 Fix UUID by using crypto

This commit is contained in:
ajnart
2022-05-21 01:26:24 +02:00
parent ecfb89de40
commit c3b11be2d0
5 changed files with 21 additions and 4 deletions

View File

@@ -122,7 +122,7 @@ export function AddAppShelfItemForm(props: { setOpened: (b: boolean) => void } &
const form = useForm({
initialValues: {
id: props.id ?? Date.now(),
id: props.id ?? crypto.randomUUID(),
type: props.type ?? 'Other',
name: props.name ?? '',
icon: props.icon ?? '/favicon.svg',