mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-11 09:42:15 +03:00
ModelCompatPopover declared providerId/modelId in its props type but never destructured them, so both param-filter fetches referenced undefined identifiers (TS2304, frozen in the dashboard-typecheck baseline) and threw into a silent catch. CustomModelsSection also never passed the two props. - Destructure providerId/modelId; pass them from CustomModelsSection. - Save pending block/allow drafts when the popover closes or unmounts, so an outside mousedown no longer discards them. - Read drafts from refs at save time and guard concurrent saves, avoiding stale-closure payloads and duplicate PUTs. - Keep dirty state and drafts on non-OK/failed GET or PUT instead of silently clearing them; skip state updates after unmount. - Provider-level block/allow, autoLearn, and other model entries are preserved; an empty block+allow still removes only the selected model entry. - Ratchet the three now-clean dashboard-typecheck baseline entries. Compat-toggle and upstream-header paths are unchanged.