Skip to content

Commit

Permalink
Remove the temporary breaking change fix caused by dependency updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
VPKSoft committed Sep 2, 2024
1 parent d5ee1d1 commit 54f7022
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/utilities/app/Files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,6 @@ const EmptyGeneralEntryString: GeneralEntry<string> = { type: "tags", values: []
*/
const failed: FileResult = { ok: false, fileData: [], fileName: "", tags: EmptyGeneralEntryString };

type OpenDialogReturn = {
path?: string;
};

/**
* Displays an open file dialog and returns the user selected file.
* @param extensionName The name of the file extension to display to the user via the open file dialog.
Expand All @@ -80,13 +76,7 @@ const selectFileToOpen = async (extensionName: string, extension = "pkd") => {
},
],
});

// Compatibility fix for frontend dependencies vs. backend dependencies for Tauri breaking change. TODO::Remove when fully merged.
if (filePath === null) {
return "";
}

return typeof filePath === "string" ? filePath : ((filePath as OpenDialogReturn)?.path ?? null);
return filePath;
};

/**
Expand Down

0 comments on commit 54f7022

Please sign in to comment.