From c7fdc41b490486ceb13b233099b6c6f598745eaa 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..33037c8fd7 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 && this.configuration[p.name] !== null))) } }, methods: {