Skip to content

Only add Craft events if the API key is set#63

Open
jamie-s-white wants to merge 1 commit into
craftpulse:v5from
supercool:feature/only-add-events-if-configured
Open

Only add Craft events if the API key is set#63
jamie-s-white wants to merge 1 commit into
craftpulse:v5from
supercool:feature/only-add-events-if-configured

Conversation

@jamie-s-white
Copy link
Copy Markdown

@jamie-s-white jamie-s-white commented Jun 18, 2025

When we first install this plugin, if we try and save elements before we have fully configured the plugin, then the save event will error:

Screenshot 2025-06-18 at 10 57 28

This PR avoids this scenario by checking that an API key has been set before it adds the Typesense events to elements.

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