Merge pull request #4 from diffusionstudio/bugfix/file-handle-types

fix: accept ElectronFileHandle in sidebar asset imports
This commit is contained in:
Konstantin Paulus 2026-07-16 13:53:25 +02:00 committed by GitHub
commit b4c5dcffcb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -123,7 +123,9 @@ export function Assets() {
}
});
const importAssets = async (handles: ReadonlyArray<File | FileSystemFileHandle | ElectronFileHandle | DataTransferItem>) => {
const importAssets = async (
handles: ReadonlyArray<File | FileSystemFileHandle | ElectronFileHandle | DataTransferItem>,
) => {
if (handles.length === 0) return;
try {