From 604d07cd4c2268dc597dca44a023ec52eff3bb2c Mon Sep 17 00:00:00 2001 From: somenewacc <62895232+somenewacc@users.noreply.github.com> Date: Mon, 4 Sep 2023 20:52:36 +0300 Subject: [PATCH] [TestRun] Fix row reload on `add_comment` --- tcms/testruns/static/testruns/js/get.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tcms/testruns/static/testruns/js/get.js b/tcms/testruns/static/testruns/js/get.js index 76cdf2fd07..1533f358fa 100644 --- a/tcms/testruns/static/testruns/js/get.js +++ b/tcms/testruns/static/testruns/js/get.js @@ -83,10 +83,7 @@ export function pageTestrunsGetReadyHandler () { selected.executionIds.forEach(executionId => { jsonRPC('TestExecution.add_comment', [executionId, comment], () => { - const testExecutionRow = $(`.test-execution-${executionId}`) - animate(testExecutionRow, () => { - delete expandedExecutionIds[expandedExecutionIds.indexOf(executionId)] - }) + reloadRowFor(allExecutions[executionId]) }) })