From c6f1ae37a44681b8991405af89f68cf7fa18eee2 Mon Sep 17 00:00:00 2001 From: Beverly Nguyen Date: Wed, 7 Aug 2024 15:47:33 -0700 Subject: [PATCH] fixing console errors --- app/assets/javascripts/totalMessagesChart.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/assets/javascripts/totalMessagesChart.js b/app/assets/javascripts/totalMessagesChart.js index ff409c969..d83c66841 100644 --- a/app/assets/javascripts/totalMessagesChart.js +++ b/app/assets/javascripts/totalMessagesChart.js @@ -23,12 +23,6 @@ var width = chartContainer.clientWidth; var height = 64; - // Ensure the width is set correctly - if (width === 0) { - console.error('Chart container width is 0, cannot set SVG width.'); - return; - } - svg.attr("width", width).attr("height", height); var x = d3.scaleLinear()