From 8e662b749e375caa0bd6c848a9c4a750682ca62e Mon Sep 17 00:00:00 2001 From: Gleb Zakharov Date: Fri, 27 Jun 2025 17:08:04 +0200 Subject: [PATCH] model: process blob uploads even if there is an error --- model/src/index.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/model/src/index.ts b/model/src/index.ts index e6db8f4..4454c79 100644 --- a/model/src/index.ts +++ b/model/src/index.ts @@ -26,9 +26,10 @@ export const platforma = BlockModel.create() (ctx) => Object.fromEntries( ctx.outputs - ?.resolve({ field: 'fileImports', assertFieldType: 'Input' }) + ?.resolve({ field: 'fileImports', assertFieldType: 'Input', ignoreError: true }) ?.mapFields((handle, acc) => [handle as ImportFileHandle, acc.getImportProgress()], { - skipUnresolved: true + fieldType: 'Input', + skipUnresolved: true, }) ?? [] ), { isActive: true }