Skip to content

Commit

Permalink
fix: lowercase when creating new powertag
Browse files Browse the repository at this point in the history
  • Loading branch information
benjypng committed Aug 7, 2024
1 parent 8403672 commit 5850e84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/features/create-tag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const CreateTag = () => {

logseq.updateSettings({
savedTags: {
[data.tagName]: data.properties,
[data.tagName.toLowerCase()]: data.properties,
},
})
reset()
Expand Down
2 changes: 1 addition & 1 deletion src/services/handle-power-tag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const handlePowerTag = async (uuid: string) => {
const tag = tagMatch[1] ?? tagMatch[2]
if (!tag) return

const powerTag = logseq.settings!.savedTags[tag]
const powerTag = logseq.settings!.savedTags[tag.toLowerCase()]
if (!powerTag) return

//****RULES OF ENGAGEMENT****//
Expand Down

0 comments on commit 5850e84

Please sign in to comment.