From e7046134aaa0911b470c236c7cb8df331c19f7d2 Mon Sep 17 00:00:00 2001 From: Bohan Cheng <47214785+cbh778899@users.noreply.github.com> Date: Fri, 25 Oct 2024 16:35:11 +1100 Subject: [PATCH] check for selected_model to avoid error (#78) * check for selected_model to avoid error Signed-off-by: cbh778899 * update version Signed-off-by: cbh778899 --------- Signed-off-by: cbh778899 --- package.json | 2 +- src/components/settings/LlamaSettings.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b25b85d..d0edcb6 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "name": "Bohan Cheng", "email": "cbh778899@outlook.com" }, - "version": "0.2.7", + "version": "0.2.8", "main": "electron.js", "license": "Apache-2.0", "scripts": { diff --git a/src/components/settings/LlamaSettings.jsx b/src/components/settings/LlamaSettings.jsx index 1f22342..c4c08a7 100644 --- a/src/components/settings/LlamaSettings.jsx +++ b/src/components/settings/LlamaSettings.jsx @@ -161,7 +161,7 @@ export default function LlamaSettings({ trigger, enabled, updateEnabled, openDow >
Are you sure you want to delete model
- {selected_model['model-name']}? + {selected_model ? selected_model['model-name'] : ""}?