From 60b9cbe2e5c8098bdb190d4e627bc0d63ff57bee Mon Sep 17 00:00:00 2001 From: henrikmv Date: Sat, 4 Jan 2025 17:39:21 +0100 Subject: [PATCH] fix: remove type check when comparing values --- src/core_modules/capture-core/metaData/OptionSet/OptionSet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core_modules/capture-core/metaData/OptionSet/OptionSet.js b/src/core_modules/capture-core/metaData/OptionSet/OptionSet.js index edf727abce..5924c954d3 100644 --- a/src/core_modules/capture-core/metaData/OptionSet/OptionSet.js +++ b/src/core_modules/capture-core/metaData/OptionSet/OptionSet.js @@ -142,7 +142,7 @@ export class OptionSet { } getOption(value: Value): ?Option { - const option = this.options.find(o => o.value === value); + const option = this.options.find(o => o.value == value); if (!option) { log.warn( errorCreator(OptionSet.errorMessages.OPTION_NOT_FOUND)({ OptionSet: this, value }),