Skip to content

Fix: If Target returns an empty offers array#9

Open
jfoxx wants to merge 2 commits intoaemsites:targetfrom
jfoxx:target
Open

Fix: If Target returns an empty offers array#9
jfoxx wants to merge 2 commits intoaemsites:targetfrom
jfoxx:target

Conversation

@jfoxx
Copy link
Copy Markdown

@jfoxx jfoxx commented Apr 2, 2026

If an activity is active on the current page, but the audience is not met, Target will return an empty array for "content" in the json. When this happens, the page stops rendering.
This fix adds one line that just ensures the content node is not empty.

jfoxx added 2 commits April 2, 2026 16:01
If an activity is active on the page, but the audience is not met, Target returns an empty array for the offers.  This prevents that from bombing the rest of the page.
Add check for empty content in options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant