Skip to content

Commit

Permalink
Both 'bool' and 'boolean' are valid types for plugins, and should be …
Browse files Browse the repository at this point in the history
…treated the same.

No-Issue
Signed-off-by: Felix Fontein <[email protected]>
  • Loading branch information
felixfontein committed Jan 21, 2025
1 parent 07cc179 commit ada255b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES/5415.bug
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Collection documentation: treat options of type `boolean` the same as options of type `bool`.
2 changes: 1 addition & 1 deletion src/components/render-plugin-doc.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -692,7 +692,7 @@ export class RenderPluginDoc extends Component<IProps, IState> {
defaultChoice,
legends = {};

if (option['type'] === 'bool') {
if (option['type'] === 'bool' || option['type'] === 'boolean') {
choices = ['true', 'false'];

if (option['default'] === true) {
Expand Down

0 comments on commit ada255b

Please sign in to comment.