Skip to content

Commit

Permalink
Fix workflow search cannot find uppercase letters (#908)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfiltered authored and huchenlei committed Sep 24, 2024
1 parent 9260f0d commit ae24bd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/sidebar/tabs/WorkflowsSidebarTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ const handleSearch = (query: string) => {
expandedKeys.value = {}
return
}
const lowerQuery = query.toLocaleLowerCase()
filteredWorkflows.value = workflowStore.workflows.filter((workflow) => {
return workflow.name.includes(query)
return workflow.name.toLocaleLowerCase().includes(lowerQuery)
})
nextTick(() => {
expandNode(filteredRoot.value)
Expand Down

0 comments on commit ae24bd7

Please sign in to comment.