mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-17 05:23:13 +01:00
Make sure state object exists
-Fix error "Cannot read property 'sort' of undefined" for favorites without state
This commit is contained in:
parent
1c783df3b8
commit
3cee4332ee
@ -285,7 +285,7 @@ var AppJS = Class.extend(
|
||||
if(state.state && state.state.search) state.state.search = unescape(state.state.search);
|
||||
|
||||
// Apply
|
||||
if(state.state.sort && state.state.sort.id)
|
||||
if(state.state && state.state.sort && state.state.sort.id)
|
||||
{
|
||||
_widget.sortBy(state.state.sort.id, state.state.sort.asc,false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user