Skip to content

Commit f3a3179

Browse files
committed
fixed changing of objects that are inside an EntryArray
1 parent 6d0a0cd commit f3a3179

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

construct_editor/core/entries.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def obj(self, val: Any):
267267
if isinstance(obj, dict) or isinstance(obj, cst.DataclassMixin):
268268
obj[path[-1]] = val
269269
elif isinstance(obj, list):
270-
obj[int(path[-1])] = val
270+
obj[int(path[-1].strip("[]"))] = val
271271

272272
# default "obj_str" #######################################################
273273
@property

0 commit comments

Comments
 (0)