We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When calling registerSetting with the same name property, the setting will be added multiple times.
registerSetting({ name: SETTING_STRIPE_SUBSCRIPTION_PLAN_ID, label: 'Stripe plan used for subscription', type: 'select', options: stripePlans.map((plan) => ({ value: plan.id, label: (plan.product as Stripe.Product)?.name ?? plan.id })), private: true }) ... whenSomethingHasChanged.then(() => { // Update options values registerSetting({ name: SETTING_STRIPE_SUBSCRIPTION_PLAN_ID, label: 'Stripe plan used for subscription', type: 'select', options: stripePlans.map((plan) => ({ value: plan.id, label: (plan.product as Stripe.Product)?.name ?? plan.id })), private: true }) })
Since the name property is unique it shouldn't be possible to have multiple settings with the same name, instead it should be updated.
PeerTube instance:
Browser name, version and platforms on which you could reproduce the bug:
Link to browser console log if relevant:
Link to server log if relevant (journalctl or /var/www/peertube/storage/logs/):
journalctl
/var/www/peertube/storage/logs/
The text was updated successfully, but these errors were encountered:
fix(server/plugins): avoid duplicate settings
3e9aa6f
Filter settings so that the name property is unique. closes Chocobozzz#6356
c7c8d3b
Sorry, duplicate of my own issue #6327 My memory is good, but short.
Sorry, something went wrong.
1eb8fc2
Filter settings so that the name property is unique. closes #6356
No branches or pull requests
Describe the current behavior
When calling registerSetting with the same name property, the setting will be added multiple times.
Steps to reproduce
Describe the expected behavior
Since the name property is unique it shouldn't be possible to have multiple settings with the same name, instead it should be updated.
Additional information
PeerTube instance:
Browser name, version and platforms on which you could reproduce the bug:
Link to browser console log if relevant:
Link to server log if relevant (
journalctl
or/var/www/peertube/storage/logs/
):The text was updated successfully, but these errors were encountered: