From 740ecd8474391d45fb5c81409157a456fa13ccd3 Mon Sep 17 00:00:00 2001 From: Bill Riehl Date: Thu, 31 Jul 2025 23:18:23 -0400 Subject: [PATCH] fix checkbox not actually getting a default value set when it should --- .../static/kbase/js/widgets/appWidgets2/input/checkboxInput.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kbase-extension/static/kbase/js/widgets/appWidgets2/input/checkboxInput.js b/kbase-extension/static/kbase/js/widgets/appWidgets2/input/checkboxInput.js index 1efc4346f9..c60b71c2a6 100644 --- a/kbase-extension/static/kbase/js/widgets/appWidgets2/input/checkboxInput.js +++ b/kbase-extension/static/kbase/js/widgets/appWidgets2/input/checkboxInput.js @@ -217,10 +217,11 @@ define([ // initialize based on config.initialValue. If it's not 0 or 1, then // note that we have an initial value error, and set to the default. - const initValue = + let initValue = 'initialValue' in config ? config.initialValue : spec.data.defaultValue; if (initValue !== 0 && initValue !== 1) { model.hasInitialValueError = true; + initValue = spec.data.defaultValue; } setModelValue(initValue);