Skip to content

Commit 7526269

Browse files
committed
fix: copy lint error sometimes copies nothing
1 parent c43d218 commit 7526269

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/language/CodeInspection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ define(function (require, exports, module) {
900900
.on("click", "tr", function (e) {
901901
if ($(e.target).hasClass('table-copy-err-button')) {
902902
// Retrieve the message from the data attribute of the clicked element
903-
const message = $(e.target).data('message');
903+
const message = $(e.target).parent().parent().find(".line-text").text();
904904
message && Phoenix.app.copyToClipboard(message);
905905
}
906906
if ($selectedRow) {

0 commit comments

Comments
 (0)