Skip to content

Commit

Permalink
Config sheet: Properly handle null as configuration value
Browse files Browse the repository at this point in the history
This fixes an error that was previously thrown.

Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed Sep 30, 2024
1 parent 38a486a commit 9377c4d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 9377c4d

Please sign in to comment.