Before update to Submission Widget

This commit is contained in:
Landon Wark
2024-03-11 13:02:21 -05:00
parent 08988a14a0
commit badf6e21c8
5 changed files with 48 additions and 259 deletions

View File

@@ -426,7 +426,7 @@ class BasicSubmission(BaseClass):
dicto = self.to_dict(full_data=True, backup=backup)
new_dict = {}
for key, value in dicto.items():
missing = value is None or value == ""
missing = value is None or value in ['', 'None']
match key:
case "reagents":
new_dict[key] = [PydReagent(**reagent, missing=False) for reagent in value]