From 0badc0b648be3ebc8d612c2c056530e6b968bc50 Mon Sep 17 00:00:00 2001 From: Thomas Draier Date: Fri, 9 Aug 2024 11:35:56 +0200 Subject: [PATCH] ts fix --- front/lib/api/vaults.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/lib/api/vaults.ts b/front/lib/api/vaults.ts index ebe9c19f49c5..31ce8e1bb2d9 100644 --- a/front/lib/api/vaults.ts +++ b/front/lib/api/vaults.ts @@ -37,7 +37,7 @@ export const getManagedDataSourceContent = async ( } } const err = contentNodes.find((r) => r.isErr()); - if (err) { + if (err?.isErr()) { return err; }