parent
2a0e90bb96
commit
fa6b772674
1 changed files with 2 additions and 2 deletions
|
@ -143,8 +143,8 @@ class Context:
|
|||
|
||||
def unset_data(self, key: str):
|
||||
if key == "":
|
||||
self._doc = {}
|
||||
data = self._doc
|
||||
self._data = {}
|
||||
data = self._data
|
||||
keys = key.split(".")
|
||||
for k in keys[:-1]:
|
||||
data = data[k]
|
||||
|
|
Loading…
Reference in a new issue