Skip to content

Commit

Permalink
check for selected_model to avoid error
Browse files Browse the repository at this point in the history
  • Loading branch information
cbh778899 committed Oct 25, 2024
1 parent 19e3409 commit 1dd9dce
Showing 1 changed file with 1 addition and 1 deletion.
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 1dd9dce

Please sign in to comment.