fixup: context.unset_data
This commit is contained in:
parent
fb80c61139
commit
71e5c5bbdc
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ class Context:
|
||||||
def unset_data(self, key: str):
|
def unset_data(self, key: str):
|
||||||
if key == "":
|
if key == "":
|
||||||
self._doc = {}
|
self._doc = {}
|
||||||
data = self._doc
|
data = self._data
|
||||||
keys = key.split(".")
|
keys = key.split(".")
|
||||||
for k in keys[:-1]:
|
for k in keys[:-1]:
|
||||||
data = data[k]
|
data = data[k]
|
||||||
|
|
Loading…
Reference in a new issue