Fix workflow search cannot find uppercase letters (#908)

This commit is contained in:
filtered
2024-09-22 11:08:14 +10:00
committed by huchenlei
parent 272f4315fa
commit 888fe91346

View File

@@ -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)