Skip to content

bootgrid doesn't work when navigation property has 1 or 2 #120

@lvv83

Description

@lvv83

Hello.
This issue already mentioned here (#81), but closed without any fix.

if we set navigation property to 1 or 2 then error raised because this.header (or this.footer) is null.

I replace this (and similar) lines:

headerActions =  this.header.find(selector),
footerActions = this.footer.find(selector);

with

headerActions = this.header ? this.header.find(selector) : [],
footerActions = this.footer ? this.footer.find(selector) : [];

and its work!

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions