Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import Species fail with "incorrectly formatted" #1254

Open
danielsan901998 opened this issue Nov 29, 2024 · 0 comments
Open

Import Species fail with "incorrectly formatted" #1254

danielsan901998 opened this issue Nov 29, 2024 · 0 comments

Comments

@danielsan901998
Copy link
Contributor

The problem is this check:

                        Object.keys(genome).forEach(function (type){
                            if (importCustom[type] && typeof genome[type] !== typeof importCustom[type]){
                                formatError = true;
                                return;
                            }
                        });

This is because fanaticism is set as false after clearing the fields, but when importing fanaticism can be a string of the trait selected, and that difference of typeof is interpreted as an error.
The current workaround is to just select any fanaticism trait before importing a file with fanaticism already selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant