Config sheet: Properly handle null as configuration value (#2773)

This fixes an error that was previously thrown.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
pull/2776/head
Florian Hotze 2024-09-30 17:11:35 +02:00 committed by GitHub
parent e742d7a13d
commit 1ea84a134f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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: {