mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-02-18 02:55:48 +00:00
Fix not being able to open files with a different extension than .ged (#13)
This commit is contained in:
parent
c988f4180e
commit
5286dceaac
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user