I’m getting this error which also seems to be causing my paginated table to not work properly (it loses all data on sort or page change)
link.js:27 Uncaught TypeError: Cannot read property ‘0’ of null
at n.update (link.js:27)
at n.$update (BaseComponent.js:303)
at BaseComponent.js:306
at Array.forEach ()
at n.$update (BaseComponent.js:305)
at BaseComponent.js:306
at Array.forEach ()
at n.$update (BaseComponent.js:305)
at BaseComponent.js:306
at Array.forEach ()
It looks like it might have something to do with routing??
link.js27
update: function(props) {
if (props.href != this.props.href) {
var url = this.props.href;if (url[0] == '.' && url[1] == '/') { var base = document.querySelector('meta[name="ac:base"]'); var route = document.querySelector('meta[name="ac:route"]'); if (route && route.content) { var path = route.content; if (base && base.content) { path = base.content.replace(/\/$/, '') + path; } var match = dmx.pathToRegexp(path, [], { end: false }).exec(location.pathname); if (match) { this.$node.setAttribute('href', url.replace('./', match[0].replace(/(\/+)?$/, '/'))); this.routeLink = true; return; } } } if (url[0] == '#') { this.routeLink = true; } else { this.routeLink = false; } this.$node.setAttribute('href', url); } this.set('active', this.isActive()); },
Any ideas would be welcome. Thanks.
Community Page
Last updated:
Last updated: