Skip to content

Commit e42d46e

Browse files
author
markzegarelli
authored
Pull actions data by ID, with slug fallback (segmentio#2711)
1 parent 3cde43b commit e42d46e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/_includes/components/actions-fields.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11

22
{% assign currentSlug = page.url | split: "/" | last %}
3+
{% assign currentId = page.id %}
4+
{% if page.id %}
5+
{% assign currentIntegration = site.data.catalog.destinations.items | where: "id", currentId | first %}
6+
{% else %}
37
{% assign currentIntegration = site.data.catalog.destinations.items | where: "slug", currentSlug | first %}
8+
{% endif %}
49
{% assign conn = include.settings %}
510

611
{% assign connectionModes = currentIntegration.connection_modes %}

0 commit comments

Comments
 (0)