Plugin settings: bug on checkbox with default=true (frontend) #4106
Labels
Component: PeerTube Plugin 📦
Features that can be developed in a plugin, but require PeerTube plugin API development
Type: Bug 🐛
Confirmed bug, at least replicated once by another contributor
Describe the current behavior
If a plugin has a checkbox settings with default value true, then the frontend always receive true as value.
I think that this is the line in cause:
PeerTube/server/models/server/plugin.ts
Line 286 in 3cf8874
It should test if the key is in
settings
, not the value.We had a similar bug on the backend ( #3838 ), here it is for the frontend.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: