Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Fix #3145
James Coleaf503597e621
diff --git a/public/v1/js/ff/charts.js b/public/v1/js/ff/charts.jsindex e704c87bca..2c9e23ac30 100644--- a/public/v1/js/ff/charts.js+++ b/public/v1/js/ff/charts.js@@ -376,13 +376,17 @@ function drawAChart(URI, container, chartType, options, colorData) {containerObj.removeClass('general-chart-error');// if result is empty array, or the labels array is empty, show error.+ // console.log(URI);+ // console.log(data.length);+ // console.log(typeof data.labels);+ // console.log(data.labels.length);if (// is undefinedtypeof data === 'undefined' ||// is empty0 === data.length ||// isn't empty but contains no labels- (data.length > 0 && typeof data.labels !== 'undefined' && 0 === data.labels.length)+ (typeof data === 'object' && typeof data.labels === 'object' && 0 === data.labels.length)) {// remove the chart container + parentvar holder = $('#' + container).parent().parent();