Plugin settings manager should return default value #6660
Labels
Component: PeerTube Plugin 📦
Features that can be developed in a plugin, but require PeerTube plugin API development
good first issue
Status: In Progress 🔜
Type: Feature Request ✨
Describe the current behavior
When running the following code before an admin has filled a value for SETTING_NUMBER_OF_PAGES the value from
getSetting
will be undefined.Steps to reproduce
See above.
Describe the expected behavior
getSetting
should return the default value when there's no custom value set.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: