diff --git a/CHANGES/5415.bug b/CHANGES/5415.bug new file mode 100644 index 0000000000..1f3f042e30 --- /dev/null +++ b/CHANGES/5415.bug @@ -0,0 +1 @@ +Collection documentation: treat options of type `boolean` the same as options of type `bool`. diff --git a/src/components/render-plugin-doc.tsx b/src/components/render-plugin-doc.tsx index c77fc3a8da..626e6ef34a 100644 --- a/src/components/render-plugin-doc.tsx +++ b/src/components/render-plugin-doc.tsx @@ -692,7 +692,7 @@ export class RenderPluginDoc extends Component { defaultChoice, legends = {}; - if (option['type'] === 'bool') { + if (option['type'] === 'bool' || option['type'] === 'boolean') { choices = ['true', 'false']; if (option['default'] === true) {