Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
fix(js/debug): Fix may fail to parse sql debug data
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Jul 19, 2019
1 parent f621685 commit 3f31b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/public/static/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ jQuery(document).ready(function () {
size: 'lg',
custom: function () {
let ret = '';
let parsed_sql_data = JSON.parse(_sql_data || '[]');
let parsed_sql_data = JSON.parse(_sql_data.replace(/\n/g,' ').replace(/ {2,}/g,' ') || '[]');
let parsed_redis_data = JSON.parse(_redis_data || '{}');
ret += '<b>SQL query list:</b><ul>';
$.each(parsed_sql_data, function (i, v) {
Expand Down

0 comments on commit 3f31b88

Please sign in to comment.