Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

馃悰 Remove empty benefits before saving #2284

Merged
merged 2 commits into from
Mar 4, 2022

Conversation

SimonBackx
Copy link
Contributor

refs https://github.com/TryGhost/Team/issues/1188

  • The api throws a validation error when we try to add benefits with an empty name
  • Before saving, we remove benefits with an empty name

@SimonBackx
Copy link
Contributor Author

Todo: add a test for this behaviour

@SimonBackx
Copy link
Contributor Author

@matthanley Test is added 馃槉

refs https://github.com/TryGhost/Team/issues/1188

- The api throws a validation error when we try to add benefits with an empty name
- Before saving, we remove benefits with an empty name
@SimonBackx SimonBackx merged commit 5e8afa8 into TryGhost:main Mar 4, 2022
@SimonBackx SimonBackx deleted the fix/empty-benefits branch March 4, 2022 16:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants