Skip to content

Commit

Permalink
Update djangocms_frontend/migrations/0002_migrate_links.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun authored Nov 19, 2024
1 parent 711a5be commit 90716ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djangocms_frontend/migrations/0002_migrate_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ def convert_item(config, direction):
"""Convert FrontendUIItem config to new djangocms_link format."""
if direction == "forward":
if config.get("external_link"):
if config.get("anchor"):
anchor = "#" + config.get("anchor")
if (config.get("anchor") or "").strip():
anchor = "#" + config.get("anchor").strip()
del config["anchor"]
else:
anchor = ""
Expand Down

0 comments on commit 90716ac

Please sign in to comment.