Help please ionic 2

this.webservice.buscaTabelaCliente(clientecodigo, this.loja, this.servidor)
.then((data) => {
this.database.presentToastError(JSON.stringify(data));
}

If data.length == 1 it’s works, but if data.length > 1 not work, why ?
In postman it’s return
[{“tabela”:“0001”,“descricao”:“P1”}]; <- it’s work…

[{“tabela”:“0001”,“descricao”:“P1”},{“tabela”:“0002”,“descricao”:“P2”},{“tabela”:“0003”,“descricao”:“P3”},{“tabela”:“0004”,“descricao”:“PC”}] <_ not work…

Could you invest 2 minutes to write a descriptive title and format your code please?

Need a little more information from you if the community is going to help you out

1 Like