klaviyo / magento2-klaviyo

37 stars 51 forks source link

Get error message using object method not array method #272

Closed jordanleslie closed 8 months ago

jordanleslie commented 8 months ago

Description

This PR fixes a bug causing a compile error when the integration is disabled in Klaviyo and we try to navigate to either the consent at checkout or newsletter tabs on the klaviyo module on the M2 admin page

Jira Ticket

Manual Testing Steps

  1. Switch into klaviyo account LzPPzc and disable the magento 2 integration
  2. Navigate to the klaviyo newsletter and consent at checkout pages on the M2 admin page
  3. You should be able to see the plugin configuration fields and not an error page with a stack trace

Pre-Submission Checklist:

NOTE: Please use the Changelogger cli tool to manage versioned file upgrades.

jordanleslie commented 8 months ago

I suspect we'll see this when the call to the list api endpoint fails but we've been unable to reproduce the issue