poteto / ember-crumbly

Declarative breadcrumb navigation for Ember apps
MIT License
167 stars 78 forks source link

isHead, isTail properties don't reflect actual state #130

Open CezaryH opened 6 years ago

CezaryH commented 6 years ago

if in first or last route breadcrumb is null then isHead & isTail are false for all other breadcrumbs

I believe here's the issue https://github.com/poteto/ember-crumbly/blob/e2a4f32b0aedd85f53cf0dc442a707eefd0f5e6e/addon/components/bread-crumbs.js#L111

I would suspect that isHead & isTail are calculated for actual breadcrumb list