We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d0a0cd commit f3a3179Copy full SHA for f3a3179
1 file changed
construct_editor/core/entries.py
@@ -267,7 +267,7 @@ def obj(self, val: Any):
267
if isinstance(obj, dict) or isinstance(obj, cst.DataclassMixin):
268
obj[path[-1]] = val
269
elif isinstance(obj, list):
270
- obj[int(path[-1])] = val
+ obj[int(path[-1].strip("[]"))] = val
271
272
# default "obj_str" #######################################################
273
@property
0 commit comments