wikitree / wikitree-dynamic-tree

Dynamically generated and browsed graphical family tree
MIT License
24 stars 15 forks source link

Bug: `Ancestor webs` - failing to obtain first letter #92

Closed MichalVasut closed 1 year ago

MichalVasut commented 1 year ago
function getFirstInitial(person) {
        return `${person._data.FirstName.substring(0, 1)}`; // <-------- here
    }    
jQuery.Deferred exception: Cannot read properties of undefined (reading 'substring') 
TypeError: Cannot read properties of undefined (reading 'substring')

usecase: https://apps.wikitree.com/apps/wikitree-dynamic-tree/#name=Windsor-21&view=webs

udjeni commented 1 year ago

https://github.com/wikitree/wikitree-dynamic-tree/pull/95 closes this issue