mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 03:01:21 +02:00
When inventory spool assignments had stale weight_used values, the fill level fallback chain (Spoolman → Inventory → AMS remain) used nullish coalescing (??), which doesn't fall through on 0. A stale inventory fill of 0% permanently shadowed the correct real-time AMS remain value. Viewer users were unaffected because their group lacked the inventory:view_assignments permission, so the query never fired. Now when inventory says 0% but AMS hardware reports positive remain, the inventory value is bypassed in favor of the live AMS data.