Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
devketanpro committed Oct 31, 2023
1 parent f034e5a commit e363495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superdesk/publish/subscribers.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ def get_active(self):

def hideConfigField(self, docs, field_name):
for doc in docs:
for destination in doc["destinations"]:
for destination in doc.get("destinations", {}):
config = destination.get("config", {})
if config.get(field_name):
del config[field_name]
Expand Down

0 comments on commit e363495

Please sign in to comment.