Update deps and Zammad version (6.4.1)
This commit is contained in:
parent
07ee819520
commit
9e5ea2fc41
40 changed files with 973 additions and 849 deletions
|
|
@ -164,7 +164,7 @@ const getIndexPattern: any = async (index: string) => {
|
|||
sort: ["updated_at:desc"],
|
||||
});
|
||||
|
||||
if (res.body.hits.total.value === 0) {
|
||||
if (res?.body?.hits?.total?.valueOf() === 0) {
|
||||
// eslint-disable-next-line no-use-before-define
|
||||
return createCurrentUserIndexPattern(index);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue