From 2201ac8c174008ec5b4a2b7fc92842184047d572 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 14 Aug 2025 08:53:34 +0000 Subject: [PATCH 1/2] fix: upgrade react-hook-form from 7.58.1 to 7.61.0 Snyk has created this PR to upgrade react-hook-form from 7.58.1 to 7.61.0. See this package in npm: react-hook-form See this project in Snyk: https://app.snyk.io/org/kagent/project/3a1ab099-8f8f-43a5-81e6-e07ff34c96dc?utm_source=github&utm_medium=referral&page=upgrade-pr Signed-off-by: Peter Jausovec --- ui/package-lock.json | 9 +++++---- ui/package.json | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ui/package-lock.json b/ui/package-lock.json index d695cf417..638635b4a 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -37,7 +37,7 @@ "next-themes": "^0.4.6", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-hook-form": "^7.58.1", + "react-hook-form": "^7.61.0", "react-markdown": "^9.1.0", "rehype-external-links": "^3.0.0", "remark-gfm": "^4.0.1", @@ -13092,9 +13092,10 @@ } }, "node_modules/react-hook-form": { - "version": "7.58.1", - "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.58.1.tgz", - "integrity": "sha512-Lml/KZYEEFfPhUVgE0RdCVpnC4yhW+PndRhbiTtdvSlQTL8IfVR+iQkBjLIvmmc6+GGoVeM11z37ktKFPAb0FA==", + "version": "7.61.0", + "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.61.0.tgz", + "integrity": "sha512-o8S/HcCeuaAQVib36fPCgOLaaQN/v7Anj8zlYjcLMcz+4FnNfMsoDAEvVCefLb3KDnS43wq3pwcifehhkwowuQ==", + "license": "MIT", "engines": { "node": ">=18.0.0" }, diff --git a/ui/package.json b/ui/package.json index 9b942308a..e299f18f0 100644 --- a/ui/package.json +++ b/ui/package.json @@ -40,7 +40,7 @@ "next-themes": "^0.4.6", "react": "^18.3.1", "react-dom": "^18.3.1", - "react-hook-form": "^7.58.1", + "react-hook-form": "^7.61.0", "react-markdown": "^9.1.0", "rehype-external-links": "^3.0.0", "remark-gfm": "^4.0.1", From a3b2dd48c2199b4278d4536f47ba1df66227871a Mon Sep 17 00:00:00 2001 From: Peter Jausovec Date: Fri, 15 Aug 2025 17:17:03 +0200 Subject: [PATCH 2/2] update the func to fix the ui break Signed-off-by: Peter Jausovec --- ui/src/components/onboarding/steps/ModelConfigStep.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/onboarding/steps/ModelConfigStep.tsx b/ui/src/components/onboarding/steps/ModelConfigStep.tsx index 12eda4a17..d8acb0744 100644 --- a/ui/src/components/onboarding/steps/ModelConfigStep.tsx +++ b/ui/src/components/onboarding/steps/ModelConfigStep.tsx @@ -376,8 +376,8 @@ export function ModelConfigStep({ const newTag = e.target.value.trim(); const newAutoName = generateConfigName( - watchedProvider, - currentModelName, + watchedProvider || "", + currentModelName || "", newTag );