Use id as assetId (#949)

This commit is contained in:
Anders Rex 2022-09-07 16:09:18 +03:00 committed by GitHub
parent 55ea729e3e
commit bb9e7ee47c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3440,7 +3440,7 @@ export class TldrawApp extends StateManager<TDSnapshot> {
let assetId: string let assetId: string
if (!match) { if (!match) {
assetId = Utils.uniqueId() assetId = id
const asset = { const asset = {
id: assetId, id: assetId,