Skip to content

Commit 58ba087

Browse files
committed
fix: critical bug with accessing parent view model
1 parent 08a2c33 commit 58ba087

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/hoc/with-view-model.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,7 @@ export function withViewModel(
121121
payload,
122122
VM: Model,
123123
viewModels,
124-
parentViewModel:
125-
(parentViewModel && instances.get(parentViewModel.id)) ||
126-
parentViewModel,
124+
parentViewModel,
127125
fallback: config?.fallback,
128126
instances,
129127
ctx,

0 commit comments

Comments
 (0)