File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
packages/node_modules/proxy-state-tree/src Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -146,7 +146,10 @@ export class Proxifier {
146146 return this . tree . master . mutationTree || ( this . tree as IMutationTree < any > )
147147 }
148148 private createArrayProxy ( value , path ) {
149- if ( value [ this . CACHED_PROXY ] && String ( value [ PATH ] ) === String ( path ) ) {
149+ if (
150+ value [ this . CACHED_PROXY ] &&
151+ String ( value [ this . CACHED_PROXY ] [ PATH ] ) === String ( path )
152+ ) {
150153 return value [ this . CACHED_PROXY ]
151154 }
152155
@@ -250,7 +253,10 @@ export class Proxifier {
250253 }
251254
252255 private createObjectProxy ( object , path ) {
253- if ( object [ this . CACHED_PROXY ] && String ( object [ PATH ] ) === String ( path ) ) {
256+ if (
257+ object [ this . CACHED_PROXY ] &&
258+ String ( object [ this . CACHED_PROXY ] [ PATH ] ) === String ( path )
259+ ) {
254260 return object [ this . CACHED_PROXY ]
255261 }
256262
You can’t perform that action at this time.
0 commit comments