Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: TS type error in pipes-section — use `in` operator for Promise check

Louis Beaumont937a7eeab6e3
diff --git a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
index 0bad8f7a7..d8bd89bea 100644
--- a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
+++ b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx
@@ -315,7 +315,7 @@ export function PipesSection() {
setRunningPipe(name);
try {
// Wait for any pending config save (e.g. preset change) to land first
- if (pendingConfigSaves.current[name]) {
+ if (name in pendingConfigSaves.current) {
await pendingConfigSaves.current[name];
}
await fetch(`http://localhost:3030/pipes/${name}/run`, {