diff --git a/package.json b/package.json index a555587..1d05173 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "svelte-knobs", - "description": "Svelte component library for building customizable knob controls.", - "version": "0.0.1", + "description": "Svelte component library for building customizable knob controls.", + "version": "0.0.2", "repository": { "url": "https://github.com/eye-wave/svelte-knobs" }, diff --git a/src/lib/Knob.svelte b/src/lib/Knob.svelte index 1bea257..8fb3fe7 100644 --- a/src/lib/Knob.svelte +++ b/src/lib/Knob.svelte @@ -37,6 +37,7 @@ // preventing the user from selecting that value function completeFixedSnapValues(snapValues: number[]) { if (param.type === 'enum-param') return []; + if (snapValues.length < 1) return []; const { min: start, max: end } = param.range; const clone = [...snapValues];