ui: Remove nspace value from routeName (#8981)

This commit is contained in:
John Cowen 2020-10-19 17:29:09 +01:00 committed by GitHub
parent ffb710a6ba
commit d15ad3ccaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -65,8 +65,9 @@ export default class Outlet extends Component {
}
setAppRoute(name) {
if (name.startsWith('nspace.')) {
name = name.substr(0, 'nspace.'.length);
const nspace = 'nspace.';
if (name.startsWith(nspace)) {
name = name.substr(nspace.length);
}
if (name !== 'loading') {
const doc = this.dom.root();