Przeglądaj źródła

Merge pull request #1988 from mbauskar/develop

[minor] allowed to render the charts if only single record is available
version-14
Nabin Hait 9 lat temu
committed by GitHub
rodzic
commit
65e000db67
1 zmienionych plików z 2 dodań i 2 usunięć
  1. +2
    -2
      frappe/public/js/frappe/ui/charts.js

+ 2
- 2
frappe/public/js/frappe/ui/charts.js Wyświetl plik

@@ -6,8 +6,8 @@ frappe.ui.Chart = Class.extend({
$.extend(this.opts, opts);
this.show_chart(false);

if(this.opts.data && ((this.opts.data.columns && this.opts.data.columns.length > 1)
|| (this.opts.data.rows && this.opts.data.rows.length > 1))) {
if(this.opts.data && ((this.opts.data.columns && this.opts.data.columns.length >= 1)
|| (this.opts.data.rows && this.opts.data.rows.length >= 1))) {
this.chart = this.render_chart();
this.show_chart(true);
}


Ładowanie…
Anuluj
Zapisz