fix: the bin redraw key includes slot numbers, so a changed pin repaints the badges

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
digital-garbage
2026-10-13 04:32:53 +03:00
co-authored by Claude Haiku 5.5
parent 60156de67a
commit c64e0ee3d8
+1 -1
View File
@@ -98,7 +98,7 @@ export default {
let drawn = "";
function draw(force) {
const sc = p.selected, plan = sc ? sceneReferences(sc, (p.project || {}).fixed_references) : { ids: [], pins: {} }, refs = plan.ids, nums = referenceNumbers(refs, plan.pins);
const key = `${(sc || {}).source_image}|${refs}|${items.map((m) => m.id)}|${selecting}|${[...chosen]}|${show.filter}`;
const key = `${(sc || {}).source_image}|${refs}|${nums}|${items.map((m) => m.id)}|${selecting}|${[...chosen]}|${show.filter}`;
if (!force && key === drawn) return; // typing elsewhere must not rebuild the thumbnails
drawn = key;
const visible = new Set(items.filter((m) => show.filter === "all" || m.kind === show.filter).map((m) => m.id));