[fix] tldraw file drop (#1616)

This PR removes a line of code that was filtering out .tldraw files when
dropping files onto the canvas.

### Change Type

- [x] `patch` — Bug fix
This commit is contained in:
Steve Ruiz 2023-06-18 23:38:50 +01:00 committed by GitHub
parent 55acf046aa
commit 4b8491d388
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -102,9 +102,7 @@ export function useCanvasEvents() {
preventDefault(e)
if (!e.dataTransfer?.files?.length) return
const files = Array.from(e.dataTransfer.files).filter(
(file) => !file.name.endsWith('.tldr')
)
const files = Array.from(e.dataTransfer.files)
const rect = editor.getContainer().getBoundingClientRect()