Skip to content

Commit

Permalink
check for selected_model to avoid error (#78)
Browse files Browse the repository at this point in the history
* check for selected_model to avoid error

Signed-off-by: cbh778899 <[email protected]>

* update version

Signed-off-by: cbh778899 <[email protected]>

---------

Signed-off-by: cbh778899 <[email protected]>
  • Loading branch information
cbh778899 authored Oct 25, 2024
1 parent 19e3409 commit e704613
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"name": "Bohan Cheng",
"email": "[email protected]"
},
"version": "0.2.7",
"version": "0.2.8",
"main": "electron.js",
"license": "Apache-2.0",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/settings/LlamaSettings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default function LlamaSettings({ trigger, enabled, updateEnabled, openDow
>
<div>
Are you sure you want to delete model<br/>
<strong>{selected_model['model-name']}</strong>?
<strong>{selected_model ? selected_model['model-name'] : ""}</strong>?
</div>
</ConfirmationDialog>
</SettingSection>
Expand Down

0 comments on commit e704613

Please sign in to comment.