Skip to content

Commit

Permalink
fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
maidh91 committed Sep 7, 2024
1 parent 6d9f84b commit 27ece0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/activity/import/import-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const ActivityImportForm = ({ onSuccess, onError }: ActivityImportFormPro
let unlisten: UnlistenFn | null = null;
(async () => {
//tauri://file-drop and tauri://file-drop-hover (and tauri://file-drop-cancelled)
unlisten = await listenImportFileDrop<string>((event) => {
unlisten = await listenImportFileDrop<string[]>((event) => {
if (event.payload) {
setDragging(false);
form.setValue('file_path', event.payload[0] as string);
Expand Down

0 comments on commit 27ece0e

Please sign in to comment.