okrad / svelte-progressbar

A multiseries, SVG progressbar component made with Svelte

Home Page:https://okrad.github.io/svelte-progressbar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unhandled exception on destruct

Brandon2255p opened this issue · comments

Hi there I am unable to "destruct" this component..
A simple example is if I use a show flag

<div on:click={() => (show = false)}>
  {#if show}
    <ProgressBar {series} width="100%" textSize={0} />
  {/if}
  <p>Prep {prep}% | Grow {grow}% | Flower {flower}% | Finalise {finalise}%</p>
</div>

When you click then it gives this stacktrace into the progressbar:

Uncaught (in promise) TypeError: Cannot read property 'c' of undefined
    at D (index.mjs:1)
    at Object.o (index.mjs:1)
    at transition_out (index.mjs:817)

Thank you @Brandon2255p,
I'm looking into it, I'll let you know asap!