mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-03-13 11:03:46 +00:00
Fix not being able to open files with a different extension than .ged (#13)
This commit is contained in:
@@ -85,10 +85,10 @@ export class TopBar extends React.Component<
|
||||
});
|
||||
|
||||
const gedcomFile =
|
||||
files.length === 1
|
||||
? files[0]
|
||||
filesArray.length === 1
|
||||
? filesArray[0]
|
||||
: filesArray.find((file) => file.name.toLowerCase().endsWith('.ged')) ||
|
||||
files[0];
|
||||
filesArray[0];
|
||||
|
||||
// Convert uploaded images to object URLs.
|
||||
const images = filesArray
|
||||
|
||||
Reference in New Issue
Block a user