Skip to content

Commit

Permalink
Correção das variavies da categoria
Browse files Browse the repository at this point in the history
  • Loading branch information
Aliton John committed Jul 5, 2024
1 parent 35939a1 commit 33e12be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/modelo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ export default class DocumentoModelo extends Plugin {
return {
results: data.data.map(function(item) {
return {
id: self.options?.categoria?.ajax?.results?.autotexto ? item[self.options?.categoria?.ajax?.results?.autotexto] : item.autotexto,
text: self.options?.categoria?.ajax?.results?.titulo ? item[self.options?.categoria?.ajax?.results?.titulo] : item.titulo
id: self.options?.categoria?.ajax?.results?.id ? item[self.options?.categoria?.ajax?.results?.id] : item.id,
text: self.options?.categoria?.ajax?.results?.value ? item[self.options?.categoria?.ajax?.results?.value] : item.value
}
}),
pagination: {
Expand Down

0 comments on commit 33e12be

Please sign in to comment.