mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +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
7f3c3e5613
commit
3404c704a6
@ -285,7 +285,7 @@ var AppJS = Class.extend(
|
|||||||
if(state.state && state.state.search) state.state.search = unescape(state.state.search);
|
if(state.state && state.state.search) state.state.search = unescape(state.state.search);
|
||||||
|
|
||||||
// Apply
|
// 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);
|
_widget.sortBy(state.state.sort.id, state.state.sort.asc,false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user