@@ -118,9 +118,11 @@ export class DataView extends Model({
118118 }
119119
120120 @modelAction
121- updateFromPath ( path : string ) : string | null {
121+ updateFromPath ( path : string ) : string [ ] | null {
122122 this . lastSelectedPath = path ;
123- const [ rootObjectTypeName , ...nestedParts ] = path . split ( "/" ) ;
123+ const [ rootObjectTypeName , ...nestedParts ] = path
124+ . split ( "/" )
125+ . map ( decodeURIComponent ) ;
124126 if ( rootObjectTypeName !== this . inspectorStack [ 0 ] ?. objectType ?. name ) {
125127 const objTypeId = this . objectTypes . find (
126128 ( obj ) => obj . name === rootObjectTypeName
@@ -129,7 +131,7 @@ export class DataView extends Model({
129131 this . selectObject ( objTypeId ) ;
130132 } else {
131133 this . selectObject ( this . objectTypes [ 0 ] ?. id ) ;
132- return this . objectTypes [ 0 ] ?. name ?? "" ;
134+ return [ this . objectTypes [ 0 ] ?. name ?? "" ] ;
133135 }
134136 }
135137 let i = 0 ;
@@ -162,7 +164,7 @@ export class DataView extends Model({
162164 ( typeof objId === "number" && ! this . edits . insertEdits . has ( objId ) )
163165 ) {
164166 this . inspectorStack = this . inspectorStack . slice ( 0 , i + 1 ) ;
165- return [ rootObjectTypeName , ...nestedParts . slice ( 0 , i * 2 ) ] . join ( "/" ) ;
167+ return [ rootObjectTypeName , ...nestedParts . slice ( 0 , i * 2 ) ] ;
166168 } else {
167169 if (
168170 objId !== stackItem ?. parentObject ! . id ||
0 commit comments