client/tags: fix crash without exported tags
This commit is contained in:
parent
73feba4b77
commit
aa95afb989
1 changed files with 4 additions and 2 deletions
|
@ -78,8 +78,10 @@ function refreshExport() {
|
|||
_categories = new Map();
|
||||
reject(error);
|
||||
}
|
||||
_tags = _tagsToMap(response.body.tags);
|
||||
_categories = _tagCategoriesToMap(response.body.categories);
|
||||
_tags = _tagsToMap(
|
||||
response.body ? response.body.tags : []);
|
||||
_categories = _tagCategoriesToMap(
|
||||
response.body ? response.body.categories : []);
|
||||
_refreshStylesheet();
|
||||
resolve();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue