Skip to content

Commit 39b7e6f

Browse files
added undefined check
1 parent cef0d25 commit 39b7e6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/services/configuration-control.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export class ConfigurationControlService {
146146
Object.keys(configuration).forEach(key => {
147147
const element = configuration[key];
148148
element.key = key;
149-
element.value = (element.value || element.value === '') ? element.value : element.default;
149+
element.value = element.value !== undefined ? element.value : element.default;
150150
if (element.type.toLowerCase() == 'acl') {
151151
// fetch all acls if property type is 'acl'
152152
this.getAllACLs();

0 commit comments

Comments
 (0)