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