Explorar o código

fix(app): drop unused error binding that broke the strict tsc build (#1228)

#1227 left 'error' unread in ChannelPlan, so npm run build (tsc -b) fails
on main with TS6133 and nothing that embeds the frontend builds.
Nacho hai 2 meses
pai
achega
3cc3b2b7d8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/src/pages/ChannelPlan.tsx

+ 1 - 1
app/src/pages/ChannelPlan.tsx

@@ -148,7 +148,7 @@ export default function ChannelPlan() {
   const [routerId, setRouterId] = useState('')
   const [data, setData] = useState<ChannelPlanData | null>(null)
   const [loading, setLoading] = useState(false)
-  const [error, setError] = useState('')
+  const [, setError] = useState('')
   // #1214: scan ad hoc para flotas con NETPULSE_SCAN_INTERVAL=0. El endpoint
   // manda "refresh" por SSE y el agente fuerza un ciclo con ForceScan (el
   // throttle del intervalo no aplica); los vecinos llegan con el próximo