diff --git a/packages/api/src/router/resources.ts b/packages/api/src/router/resources.ts index 060d2220..b06f1b76 100644 --- a/packages/api/src/router/resources.ts +++ b/packages/api/src/router/resources.ts @@ -428,13 +428,13 @@ export const resourceRouter = createTRPCRouter({ .filter((n) => isPresent(n.node)) .map((n) => ({ ...n.resource_relationship, - resource: n.node, + resource: n.node!, })), to: toNodes .filter((n) => isPresent(n.node)) .map((n) => ({ ...n.resource_relationship, - resource: n.node, + resource: n.node!, })), }, };