forked from extern/egroupware
Make sure state object exists
-Fix error "Cannot read property 'sort' of undefined" for favorites without state
This commit is contained in:
parent
7f3c3e5613
commit
3404c704a6
@ -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