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

script throws if toArray returns an empty array #12366

Open
aric87 opened this issue Feb 15, 2018 · 2 comments
Open

script throws if toArray returns an empty array #12366

aric87 opened this issue Feb 15, 2018 · 2 comments

Comments

@aric87
Copy link

aric87 commented Feb 15, 2018

https://github.com/FortAwesome/Font-Awesome/blob/master/svg-with-js/js/fontawesome.js#L1295
I'm not exactly sure what's causing this to return an empty array, but if it does, it throws a TypeError as follows:

"Reduce of empty array with no initial value"
This is the value of root:

<span id="reservations-reservationLockCountdown" class="is-countdown">00:10:00</span>

If there's any other info you need, let me know.

@aric87
Copy link
Author

aric87 commented Feb 15, 2018

I was able to patch my local copy by adding an empty array as the initial value, by I'm not confident that didn't cause any other issues.

@caomicc
Copy link

caomicc commented Feb 15, 2018

+1

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

2 participants