Merge branch 'master' of https://gitea.verdnatura.es/verdnatura/salix into test
This commit is contained in:
commit
f361a07dd5
|
@ -47,9 +47,9 @@ class Controller extends Section {
|
|||
};
|
||||
this.$http.get(`TicketLogs`, {filter})
|
||||
.then(res => {
|
||||
if (res && res.data) {
|
||||
if (res && res.data && res.data.length) {
|
||||
const now = Date.vnNew();
|
||||
const maxDate = new Date(res.data.creationDate);
|
||||
const maxDate = new Date(res.data[0].creationDate);
|
||||
maxDate.setHours(maxDate.getHours() + 1);
|
||||
if (now <= maxDate)
|
||||
return this.canRestoreTicket = true;
|
||||
|
|
Loading…
Reference in New Issue