...
 
Commits (2)
...@@ -44,7 +44,7 @@ export default class SIBRouter extends HTMLElement { ...@@ -44,7 +44,7 @@ export default class SIBRouter extends HTMLElement {
route.hide(); route.hide();
} }
navigate(routeName = '', resource) { navigate(routeName = '', resource) {
const route = this.querySelector('sib-route[name='+routeName+']'); const route = this.querySelector('sib-route[name="'+routeName+'"]');
if(!route) return; //this route is not for me! if(!route) return; //this route is not for me!
const id = resource ? resource['@id'] : null; const id = resource ? resource['@id'] : null;
......