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 31e9998a5d
commit 8d7683c7ec
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();