mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-25 23:18:54 -05:00
chore: improved action searching (#7234)
This commit is contained in:
committed by
GitHub
parent
07a6cd6c0e
commit
2a590ef315
@@ -45,9 +45,13 @@ export const SavedActionsTab = ({
|
||||
<Input
|
||||
type="text"
|
||||
onChange={(e) => {
|
||||
const searchTerm = e.target.value.toLowerCase();
|
||||
setFilteredActionClasses(
|
||||
availableActions.filter((actionClass) =>
|
||||
actionClass.name.toLowerCase().includes(e.target.value.toLowerCase())
|
||||
availableActions.filter(
|
||||
(actionClass) =>
|
||||
actionClass.name.toLowerCase().includes(searchTerm) ||
|
||||
actionClass.description?.toLowerCase().includes(searchTerm) ||
|
||||
actionClass.key?.toLowerCase().includes(searchTerm)
|
||||
)
|
||||
);
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user