Skip to content

Commit

Permalink
Don't assume names of document types are all uppercase (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
jfreda committed Sep 11, 2023
1 parent 53cd946 commit e8b041e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/config.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ document_types {
}
}

// document_type "MEMO" {
// document_type "Memo" {
// long_name = "Memo"
// description = "Create a Memo document to share an idea or brief note with colleagues."
// template = "file-id-for-a-blank-doc"
Expand Down
2 changes: 1 addition & 1 deletion internal/api/drafts.go
Original file line number Diff line number Diff line change
Expand Up @@ -1149,7 +1149,7 @@ func getDocTypeTemplate(
template := ""

for _, t := range docTypes {
if strings.ToUpper(t.Name) == docType {
if t.Name == docType {
template = t.Template
break
}
Expand Down

0 comments on commit e8b041e

Please sign in to comment.