fixed the issue where dashboard wasnt displaying the page content
This commit is contained in:
@@ -386,7 +386,7 @@ new class extends Component
|
||||
chart: null,
|
||||
data: @js($chartData),
|
||||
init() {
|
||||
if (typeof Chart === 'undefined') return;
|
||||
if (typeof Chart === 'undefined' || !this.$refs.canvas) return;
|
||||
this.chart = new Chart(this.$refs.canvas, {
|
||||
type: 'line',
|
||||
data: {
|
||||
@@ -454,7 +454,7 @@ new class extends Component
|
||||
chart: null,
|
||||
data: @js($chartData['consultationBreakdown']),
|
||||
init() {
|
||||
if (typeof Chart === 'undefined') return;
|
||||
if (typeof Chart === 'undefined' || !this.$refs.canvas) return;
|
||||
const total = this.data.free + this.data.paid;
|
||||
this.chart = new Chart(this.$refs.canvas, {
|
||||
type: 'doughnut',
|
||||
@@ -515,7 +515,7 @@ new class extends Component
|
||||
chart: null,
|
||||
data: @js($chartData),
|
||||
init() {
|
||||
if (typeof Chart === 'undefined') return;
|
||||
if (typeof Chart === 'undefined' || !this.$refs.canvas) return;
|
||||
this.chart = new Chart(this.$refs.canvas, {
|
||||
type: 'line',
|
||||
data: {
|
||||
|
||||
Reference in New Issue
Block a user