From 531a16d7616c86d3638ef724cef7b41ccf2ed05c Mon Sep 17 00:00:00 2001 From: jimmay5469 Date: Mon, 15 Oct 2018 14:31:14 -0400 Subject: [PATCH] Stop trimming bottom on transactions live reload Co-authored-by: Stamates --- apps/block_scout_web/assets/js/pages/transaction.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/apps/block_scout_web/assets/js/pages/transaction.js b/apps/block_scout_web/assets/js/pages/transaction.js index 0c91a7cc5e..e6b27e2ae5 100644 --- a/apps/block_scout_web/assets/js/pages/transaction.js +++ b/apps/block_scout_web/assets/js/pages/transaction.js @@ -189,12 +189,6 @@ if ($transactionPendingListPage.length) { } if (oldState.newPendingTransactions !== state.newPendingTransactions) { const newTransactionsToInsert = state.newPendingTransactions.slice(oldState.newPendingTransactions.length) - $pendingTransactionsList - .children() - .slice($pendingTransactionsList.children().length - newTransactionsToInsert.length, - $pendingTransactionsList.children().length - ) - .remove() prependWithClingBottom($pendingTransactionsList, newTransactionsToInsert.reverse().join('')) updateAllAges() @@ -236,10 +230,6 @@ if ($transactionListPage.length) { } if (oldState.newTransactions !== state.newTransactions) { const newTransactionsToInsert = state.newTransactions.slice(oldState.newTransactions.length) - $transactionsList - .children() - .slice($transactionsList.children().length - newTransactionsToInsert.length, $transactionsList.children().length) - .remove() prependWithClingBottom($transactionsList, newTransactionsToInsert.reverse().join('')) updateAllAges()