Commit 5016b072 authored by Matthieu Fesselier's avatar Matthieu Fesselier

bugfix: improve querySelector

parent e6659b18
Pipeline #2364 passed with stage
in 28 seconds
......@@ -44,7 +44,7 @@ export default class SIBRouter extends HTMLElement {
route.hide();
}
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!
const id = resource ? resource['@id'] : null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment