Commit 99d38cb9 authored by marius david's avatar marius david
Browse files

generate an id client-side

parent 9e65ca73
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -277,8 +277,9 @@ function initDraw() {
	})

	function generateExportObject() {
		//TODO: use an UUID?
		const exportObject = {
			id: entry ? entry.id : -1,
			id: entry ? entry.id : Math.floor(Math.random() * 9999999999),
			name: nameField.value,
			description: descriptionField.value,
			links: {},