From 9377c4d15550d4ce995b45e64a6ff7b393798863 Mon Sep 17 00:00:00 2001 From: Florian Hotze Date: Mon, 30 Sep 2024 16:52:36 +0200 Subject: [PATCH] Config sheet: Properly handle null as configuration value This fixes an error that was previously thrown. Signed-off-by: Florian Hotze --- .../org.openhab.ui/web/src/components/config/config-sheet.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.openhab.ui/web/src/components/config/config-sheet.vue b/bundles/org.openhab.ui/web/src/components/config/config-sheet.vue index c65a88216f..6cdd26564c 100644 --- a/bundles/org.openhab.ui/web/src/components/config/config-sheet.vue +++ b/bundles/org.openhab.ui/web/src/components/config/config-sheet.vue @@ -112,7 +112,7 @@ export default { // - a default value is defined and the actual value differs from the default value // - no default value is defined and the param has a value return finalParameters.filter((p) => !p.advanced || - (p.default !== undefined && this.configuration[p.name] !== undefined ? this.configuration[p.name].toString() !== p.default : this.configuration[p.name] !== undefined)) + (p.default !== undefined && this.configuration[p.name] !== undefined && this.configuration[p.name] !== null ? this.configuration[p.name].toString() !== p.default : (this.configuration[p.name] !== undefined))) } }, methods: {