Debounce filter value updates

This commit is contained in:
David Corbitt
2023-08-14 21:00:42 -07:00
parent 05e774d021
commit 649dc3376b
7 changed files with 87 additions and 37 deletions

View File

@@ -186,6 +186,7 @@ export const externalApiRouter = createTRPCRouter({
]);
const tagsToCreate = Object.entries(input.tags ?? {}).map(([name, value]) => ({
projectId: key.projectId,
loggedCallId: newLoggedCallId,
// sanitize tags
name: name.replaceAll(/[^a-zA-Z0-9_]/g, "_"),