We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba2704e commit 6937df9Copy full SHA for 6937df9
packages/admin/src/DitoContext.js
@@ -32,10 +32,10 @@ function toObject(context) {
32
if (object) break
33
raw = Object.getPrototypeOf(raw)
34
} while (raw)
35
- if (raw !== rawStart) {
+ if (object && raw !== rawStart) {
36
// Assign the passed context with the original object as well, so we don't
37
// have to search for it again:
38
- contexts.set(rawStart, object)
+ contexts.set(raw, object)
39
}
40
return object
41
0 commit comments