You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On line 84 of index.html info.tags gets checked with an if(){} statement, in my case my tags object was empty like so
"tags":{}
The if(){} returns true because an empty JavaScript object is a truthy value. This causes the for loop on line 85 to throw an error because it can't iterate.
The fix (I think would be best) is to check for the length of keys in the object.
if (Object.keys(info.tags).length > 0) {
//
}
The text was updated successfully, but these errors were encountered:
Thanks for the report! I'll probably submit a fix & release a new version later today. Also, it is probably a sign that the project grew enough to have more formal testing :)
On line
84
ofindex.html
info.tags
gets checked with anif(){}
statement, in my case mytags
object was empty like soThe
if(){}
returnstrue
because an empty JavaScript object is a truthy value. This causes the for loop on line85
to throw an error because it can't iterate.The fix (I think would be best) is to check for the length of keys in the object.
The text was updated successfully, but these errors were encountered: