From 56919ed8199f282c9e50f98815bf5224de455425 Mon Sep 17 00:00:00 2001 From: Dejvino Date: Mon, 21 Sep 2026 21:01:47 +0200 Subject: [PATCH] Fix dropped-file load crash on null pins applyPins destructured its argument, whose default only covers undefined; dropped files pass pins: null. Guard with || {}. --- flow-state/src/Show.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flow-state/src/Show.js b/flow-state/src/Show.js index 2f60a9f..4ed7883 100644 --- a/flow-state/src/Show.js +++ b/flow-state/src/Show.js @@ -131,7 +131,8 @@ export class Show { * * @returns {boolean} true when anything was pinned */ - applyPins({ venueSel = null, viz = null } = {}) { + applyPins(pins) { + const { venueSel = null, viz = null } = pins || {}; if (!this.look || (!venueSel && !viz)) return false; let pinned = false; if (venueSel && this.look.venue) {