chore: handle invalid connections conf for internal links (#22486)
* chore: handle invalid connections conf for internal links * chore: remove unnecessary None
This commit is contained in:
parent
67376e26d4
commit
5004374ecc
1 changed files with 1 additions and 1 deletions
|
|
@ -311,7 +311,7 @@ def get_internal_links(doc, link, link_doctype):
|
|||
elif isinstance(link, list):
|
||||
# get internal links in child documents
|
||||
table_fieldname, link_fieldname = link
|
||||
for row in doc.get(table_fieldname):
|
||||
for row in doc.get(table_fieldname) or []:
|
||||
value = row.get(link_fieldname)
|
||||
if value and value not in names:
|
||||
names.append(value)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue