mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-09-30 03:01:21 +02:00
Editing a queue item that was created with "Any of model X" left the printer selection area completely blank — the assignmentMode was initialised to 'model' from queueItem.target_model, but the three model-mode props (onAssignmentModeChange, onTargetModelChange, onTargetLocationChange) were gated behind !isEditing. That flipped modelAssignmentAvailable to false in PrinterSelector and hid the mode toggle, the model dropdown, AND the location filter; combined with the assignmentMode === 'printer' gate on the printer list, the whole selector rendered empty. Users hit this whenever they queued something to "Any of model X" and then wanted to change the target model / location — the only workaround was delete + re-queue. Fix: drop the !isEditing gate on all three PrinterSelector props. The submit path already handles both flavours (target_model+target_location with printer_id=null vs. printer_id with the target fields nulled), so un-gating the UI just surfaces the machinery that was already there. Edit is still only offered on pending items, so the mode-flip can't race an in-flight dispatch.