mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-01 14:41:25 -04:00
add comments
This commit is contained in:
@@ -192,9 +192,9 @@
|
||||
// Choose the correct JSON string based on the type ('service' or 'user'),
|
||||
// replace single quotes with double quotes to ensure valid JSON format,
|
||||
// then parse the JSON string into a JavaScript object.
|
||||
var statJson = type === 'service' ? daily_stats : daily_stats_by_user;
|
||||
statJson = statJson.replace(/'/g, '"');
|
||||
data = JSON.parse(statJson);
|
||||
var statsJson = type === 'service' ? daily_stats : daily_stats_by_user;
|
||||
statsJson = statsJson.replace(/'/g, '"');
|
||||
data = JSON.parse(statsJson);
|
||||
} catch (error) {
|
||||
console.error('Error parsing JSON data:', error);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user