Skip to content

Commit

Permalink
fix: skip setting fields that are not in scope_mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
rpenido committed Jan 28, 2025
1 parent 62f9c9c commit e1c857c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xblock/field_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ def set_many(self, block, update_dict):
for key, value in update_dict.items():
update_dicts[self._field_data(block, key)][key] = value
for field_data, new_update_dict in update_dicts.items():
field_data.set_many(block, new_update_dict)
if field_data is not None: # Ignore fields that are not in the scope_mappings
field_data.set_many(block, new_update_dict)

def delete(self, block, name):
self._field_data(block, name).delete(block, name)
Expand Down

0 comments on commit e1c857c

Please sign in to comment.