From b4cec7ae8186f8abb35aa0d0b25db58ad3beff7d Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Mon, 29 Sep 2025 10:29:41 +0200 Subject: [PATCH] Stop triggering file:deleted event on getFileMeta checks Not sure why that happened... --- client/spaces/evented_space_primitives.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/client/spaces/evented_space_primitives.ts b/client/spaces/evented_space_primitives.ts index a63b8339..691b8afc 100644 --- a/client/spaces/evented_space_primitives.ts +++ b/client/spaces/evented_space_primitives.ts @@ -225,16 +225,6 @@ export class EventedSpacePrimitives implements SpacePrimitives { await this.triggerEventsAndCache(path, newMeta.lastModified); } return newMeta; - } catch (e: any) { - // console.log("Checking error", e, path); - if (e.message === notFoundError.message) { - await this.dispatchEvent("file:deleted", path); - if (path.endsWith(".md")) { - const pageName = path.substring(0, path.length - 3); - await this.dispatchEvent("page:deleted", pageName); - } - } - throw e; } finally { this.operationInProgress = false; }