mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
fix JS error, if user has no preferences or favorites
This commit is contained in:
parent
e1af1f3765
commit
509fbd73e9
@ -103,7 +103,7 @@ export class Et2Favorites extends Et2DropdownButton implements et2_INextmatchHea
|
||||
public static readonly PREFIX = "favorite_";
|
||||
protected static readonly ADD_VALUE = "~add~";
|
||||
|
||||
private favSortedList : any = null;
|
||||
private favSortedList : any = [];
|
||||
private _preferred : string;
|
||||
private _nextmatch : et2_nextmatch;
|
||||
|
||||
@ -203,6 +203,7 @@ export class Et2Favorites extends Et2DropdownButton implements et2_INextmatchHea
|
||||
};
|
||||
|
||||
// Load saved favorites
|
||||
this.favSortedList = [];
|
||||
let preferences : any = this.egw().preference("*", app);
|
||||
for(let pref_name in preferences)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user