[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
no-ticks
Steve Ruiz 2023-06-18 23:38:50 +01:00 zatwierdzone przez GitHub
rodzic 55acf046aa
commit 4b8491d388
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

@ -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()