From 06da2b4e8a33b0a29de968cfd1c912ed3a58bb93 Mon Sep 17 00:00:00 2001 From: liyuchun <563917701@qq.com> Date: Mon, 24 Oct 2022 16:09:12 +0800 Subject: [PATCH] * Finish task #28484. --- module/repo/js/diff.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/repo/js/diff.js b/module/repo/js/diff.js index 93247dc1b7..e1d487d93a 100644 --- a/module/repo/js/diff.js +++ b/module/repo/js/diff.js @@ -54,13 +54,13 @@ function getDiffs(fileName) if(code.type == 'all' || code.type == 'new') { result.code.new += htmlspecialchars_decode(code.line.substring(2)) + "\n"; - result.line.new.push(code.newlc); + result.line.new.push(parseInt(code.newlc)); } if(code.type == 'all' || code.type == 'old') { result.code.old += htmlspecialchars_decode(code.line.substring(2)) + "\n"; - result.line.old.push(code.oldlc); + result.line.old.push(parseInt(code.oldlc)); } }) return result;