Fixed typo in context.unset_data

Picked from 71e5c5b and 38029e3
This commit is contained in:
Jan Černohorský 2024-03-18 20:55:34 +01:00
parent 2a0e90bb96
commit fa6b772674

View file

@ -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]