From e6b5a87f24c168c056f90566da0999a5b930cd77 Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Sat, 19 Sep 2026 16:39:30 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20Dropdown=20value=20must=20be=20null=20(n?= =?UTF-8?q?ot=20'')=20for=20'no=20selection'=20=E2=80=94=20was=20throwing?= =?UTF-8?q?=20Invalid=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/ui.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 38d4c13..57a3cf9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "figma-ai-plugin", - "version": "0.1.4", + "version": "0.1.5", "private": true, "dependencies": { "@create-figma-plugin/ui": "^4.0.3", diff --git a/src/ui.tsx b/src/ui.tsx index e8e8f7a..5431c59 100644 --- a/src/ui.tsx +++ b/src/ui.tsx @@ -29,7 +29,7 @@ const MIN_WINDOW_SIZE = { width: 320, height: 200 } // very high — actual clamp is done by main via clampWindowSize (bounds*zoom). // Full plugin version shown in the footer status bar. Keep in sync with package.json "version". -const PLUGIN_VERSION = '0.1.4' +const PLUGIN_VERSION = '0.1.5' const fieldStyle = { display: 'flex', @@ -176,7 +176,7 @@ function SettingsPanel (props: { settings: Settings, setSettings: (s: Settings)
0 ? 'Select model' : 'Fetch models first'} - value={provider.defaultModel} + value={provider.defaultModel === '' ? null : provider.defaultModel} onValueChange={function (id: string) { patch({ defaultModel: id }) }} options={(provider.models || []).map(function (m) { return { value: m, text: m } })} />