mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2265] fix user preference null value (#2948)
* fix user preference null value * fix method call test public
This commit is contained in:
committed by
Denys Vuika
parent
63a146616b
commit
6e57cd3e17
@@ -51,7 +51,7 @@ export class UserPreferencesService {
|
||||
get(property: string, defaultValue?: string): string {
|
||||
const key = this.getPropertyKey(property);
|
||||
const value = this.storage.getItem(key);
|
||||
if (value === undefined) {
|
||||
if (value === undefined || value === null) {
|
||||
return defaultValue;
|
||||
}
|
||||
return value;
|
||||
|
Reference in New Issue
Block a user