Skip to content

Commit 784bbc6

Browse files
committed
Substituir variável 'idLead' por 'cadastroId' na função de exclusão de lead para melhorar a clareza do código
1 parent 2e6f43a commit 784bbc6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

resources/views/dashboard/index.blade.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ function atualizarOptionsFiltroAtividade(table, filtroAtividadeSelecionado, dado
433433
434434
435435
table.on('click', '.delete-lead', function(event) {
436-
let idLead = $(this).data('id');
437436
let cadastroId = $(this).data('id');
438437
let vendedorId = {{ auth()->user()->IDCadastro }};
439438
@@ -453,7 +452,7 @@ function atualizarOptionsFiltroAtividade(table, filtroAtividadeSelecionado, dado
453452
},
454453
success: function() {
455454
alert('Lead excluído com sucesso!');
456-
let row = table.row($('button[data-id="' + idLead + '"]')
455+
let row = table.row($('button[data-id="' + cadastroId + '"]')
457456
.closest('tr'));
458457
row.remove().draw();
459458
},

0 commit comments

Comments
 (0)