Skip to content

Commit

Permalink
Refactor calls to delete expandedTestCaseIds
Browse files Browse the repository at this point in the history
  • Loading branch information
atodorov committed Sep 27, 2023
1 parent cd98df2 commit 1e75d0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tcms/testplans/static/testplans/js/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function redrawSingleRow (testCaseId, testPlanId, permissions) {
const newRow = getTestCaseRowContent(testCaseRowDocumentFragment.cloneNode(true), allTestCases[testCaseId], permissions)

// remove from expanded list b/c the comment section may have changed
delete expandedTestCaseIds[expandedTestCaseIds.indexOf(testCaseId)]
expandedTestCaseIds.splice(expandedTestCaseIds.indexOf(testCaseId), 1)

// replace the element in the dom
$(`[data-testcase-pk=${testCaseId}]`).replaceWith(newRow)
Expand Down

0 comments on commit 1e75d0a

Please sign in to comment.