From 7f7cca415c3519c93421cdb39da3048cbc3f5833 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Wed, 17 Dec 2025 22:54:18 -0800 Subject: [PATCH] fix: build errors in MetrcDashboardPage --- frontend/src/pages/MetrcDashboardPage.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/pages/MetrcDashboardPage.tsx b/frontend/src/pages/MetrcDashboardPage.tsx index 05f57a2..7a7b22f 100644 --- a/frontend/src/pages/MetrcDashboardPage.tsx +++ b/frontend/src/pages/MetrcDashboardPage.tsx @@ -1,3 +1,4 @@ +import { useState, useEffect } from 'react'; import { Link } from 'react-router-dom'; import { Cloud, CloudOff, RefreshCw, Download, AlertTriangle, @@ -75,7 +76,7 @@ export default function MetrcDashboardPage() { } } - const filteredPlants = report?.plants.filter(p => + const filteredPlants = report?.plants.filter((p: any) => searchTerm === '' || p.tagNumber.toLowerCase().includes(searchTerm.toLowerCase()) || p.room.toLowerCase().includes(searchTerm.toLowerCase()) @@ -284,7 +285,7 @@ export default function MetrcDashboardPage() {
Location changes requiring METRC update