🚑 Fix UUID by using crypto
This commit is contained in:
1 parent
ecfb89de40
commit
c3b11be2d0
5 files changed
+21
-4
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user