Skip to content

Commit

Permalink
needs_external_needs: Skip setting prefixes if no prefix was given (#820
Browse files Browse the repository at this point in the history
)

* Skip setting prefixes if no prefix was given

* Fix formatting issue
  • Loading branch information
Rubyfi authored Nov 28, 2022
1 parent 51cf31c commit dd3a7e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sphinx_needs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ def import_prefix_link_edit(needs: Dict[str, Any], id_prefix: str, needs_extra_l
:param needs_extra_links: config var of all supported extra links. Normally coming from env.config.needs_extra_links
:return:
"""
if not id_prefix:
return

needs_ids = needs.keys()

for need in needs.values():
Expand Down

0 comments on commit dd3a7e8

Please sign in to comment.