From ada255badcfff520578b284094cc92735353e47c Mon Sep 17 00:00:00 2001 From: Felix Fontein Date: Tue, 21 Jan 2025 20:16:55 +0100 Subject: [PATCH] Both 'bool' and 'boolean' are valid types for plugins, and should be treated the same. No-Issue Signed-off-by: Felix Fontein --- CHANGES/5415.bug | 1 + src/components/render-plugin-doc.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 CHANGES/5415.bug 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) {