Fix remaining value

This commit is contained in:
Jesús Ángel González 2018-07-02 11:52:22 +02:00 committed by Javier Castro
parent 25bc0f071b
commit 0ebc79a1eb

View File

@ -74,7 +74,7 @@ export default class DataFactory {
const totalItems = firstPage.data.data.totalItems;
const remaining = this.items.length === totalItems ? 0 :
totalItems-firstPage.data.data.items.length-this.items.length;
totalItems-this.items.length;
// Ignore manager as an agent, once the team solves this issue, review this line
if(this.path === '/agents') this.items = this.items.filter(item => item.id !== '000');