From ba92e3de276e6a3049592199dd6b0d4f7550bca6 Mon Sep 17 00:00:00 2001 From: Donovan Hutchence Date: Fri, 11 Aug 2023 17:37:03 +0100 Subject: [PATCH] followup fix --- package-lock.json | 4 ++-- package.json | 2 +- src/components/ArrayInput/index.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index fd9817c6..9922c017 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@playcanvas/pcui", - "version": "4.1.0", + "version": "4.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@playcanvas/pcui", - "version": "4.1.0", + "version": "4.1.1", "license": "MIT", "dependencies": { "@playcanvas/observer": "^1.3.6" diff --git a/package.json b/package.json index 078ae8cd..f7b377e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@playcanvas/pcui", - "version": "4.1.0", + "version": "4.1.1", "author": "PlayCanvas ", "homepage": "https://playcanvas.github.io/pcui", "description": "User interface component library for the web", diff --git a/src/components/ArrayInput/index.ts b/src/components/ArrayInput/index.ts index 29bfed7c..009652bd 100644 --- a/src/components/ArrayInput/index.ts +++ b/src/components/ArrayInput/index.ts @@ -395,7 +395,7 @@ class ArrayInput extends Element implements IFocusable, IBindable { if (array && array.length > index) { if (this._valueType === 'curveset') { // curveset is passing the value in an array - array[index] = value ? value[0] : value; + array[index] = Array.isArray(value) ? value[0] : value; } else { array[index] = value; }