Fix nearestSpan not defined bug

This commit is contained in:
Rachid Mrad 2024-11-26 12:26:28 -05:00
parent 67a8cf425d
commit 4df17d7de0
No known key found for this signature in database

View file

@ -292,7 +292,7 @@ export function initCopyRequestSummary() {
buttonIcon.setAttribute('xlink:href', baseHref + '#check'); buttonIcon.setAttribute('xlink:href', baseHref + '#check');
// Change the button text // Change the button text
nearestSpan = copyButton.querySelector("span") let nearestSpan = copyButton.querySelector("span")
original_text = nearestSpan.innerText original_text = nearestSpan.innerText
nearestSpan.innerText = "Copied to clipboard" nearestSpan.innerText = "Copied to clipboard"