Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.

Commit 3f321a1

Browse files
Update assets/javascripts/discourse/components/ai-llm-quota-editor.gjs
Co-authored-by: Keegan George <[email protected]>
1 parent 710723f commit 3f321a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/discourse/components/ai-llm-quota-editor.gjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export default class AiLlmQuotaEditor extends Component {
7474
async addQuota() {
7575
const quota = {
7676
group_id: this.newQuotaGroupIds[0],
77-
group_name: this.site.groups.findBy("id", this.newQuotaGroupIds[0]).name,
77+
group_name: this.site.groups.findBy("id", this.newQuotaGroupIds[0])?.name,
7878
llm_model_id: this.args.model.id,
7979
max_tokens: this.newQuotaTokens,
8080
max_usages: this.newQuotaUsages,

0 commit comments

Comments
 (0)