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 25, 2024
1 parent f4d4cc3 commit 38c2ec7
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 38c2ec7

Please sign in to comment.