Remove console.log statements from sensor store and AnalyticsView
This commit is contained in:
@@ -188,7 +188,6 @@ export const useSensorStore = defineStore('sensor', () => {
|
|||||||
}) {
|
}) {
|
||||||
const result = await handleApiCall(() => sensorsApi.getSensors(params))
|
const result = await handleApiCall(() => sensorsApi.getSensors(params))
|
||||||
if (result) {
|
if (result) {
|
||||||
console.log(result)
|
|
||||||
// Check if result has a sensors property (common API pattern)
|
// Check if result has a sensors property (common API pattern)
|
||||||
if (result.sensors && Array.isArray(result.sensors)) {
|
if (result.sensors && Array.isArray(result.sensors)) {
|
||||||
let totalReadingsCount: number = 0
|
let totalReadingsCount: number = 0
|
||||||
|
|||||||
@@ -332,7 +332,6 @@ const apiError = computed(
|
|||||||
|
|
||||||
// Helper functions
|
// Helper functions
|
||||||
const formatNumber = (num: number): string => {
|
const formatNumber = (num: number): string => {
|
||||||
console.log(num)
|
|
||||||
if (num >= 1000000) return (num / 1000000).toFixed(1) + 'M'
|
if (num >= 1000000) return (num / 1000000).toFixed(1) + 'M'
|
||||||
if (num >= 1000) return (num / 1000).toFixed(1) + 'K'
|
if (num >= 1000) return (num / 1000).toFixed(1) + 'K'
|
||||||
return num.toString()
|
return num.toString()
|
||||||
|
|||||||
Reference in New Issue
Block a user