b4832dbf09
regenerateCopy() runs synchronously from a click handler, but it read the figureName reactive, which Svelte has not flushed yet in that tick - so a figure picked in the form never reached the title. Resolve the figure straight from figIds at call time instead.