From 4d7b91fafe1a56d1f4acfc1f154c67b95f24a434 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Fri, 6 Jun 2025 20:26:23 -0400 Subject: [PATCH] add null check to pub data --- app/api/rpc/[command]/pull.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/rpc/[command]/pull.ts b/app/api/rpc/[command]/pull.ts index 647700d6..49fb7aa4 100644 --- a/app/api/rpc/[command]/pull.ts +++ b/app/api/rpc/[command]/pull.ts @@ -74,7 +74,7 @@ export const pull = makeRoute({ description: string; title: string; }[]; - let pub_patch = publication_data[0] + let pub_patch = publication_data?.[0] ? [ { op: "put", -- 2.51.2