Przeglądaj źródła

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 2 miesięcy temu
rodzic
commit
3cc3b2b7d8
1 zmienionych plików z 1 dodań i 1 usunięć
  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 [routerId, setRouterId] = useState('')
   const [data, setData] = useState<ChannelPlanData | null>(null)
   const [data, setData] = useState<ChannelPlanData | null>(null)
   const [loading, setLoading] = useState(false)
   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
   // #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
   // 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
   // throttle del intervalo no aplica); los vecinos llegan con el próximo