From 31fc213933248d96a9520df921cd196a42b1075e Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Tue, 10 Mar 2026 12:38:43 +0000 Subject: [PATCH] fix: handle missing schema in RunnableByPath during wmill.d.ts generation (#8300) --- frontend/src/lib/components/raw_apps/utils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/lib/components/raw_apps/utils.ts b/frontend/src/lib/components/raw_apps/utils.ts index 077a9ddad8..06264d9c5f 100644 --- a/frontend/src/lib/components/raw_apps/utils.ts +++ b/frontend/src/lib/components/raw_apps/utils.ts @@ -107,7 +107,11 @@ function hiddenRunnableToTsType(runnable: Runnable) { return '{}' } } else if (isRunnableByPath(runnable)) { - return schemaToTsType(removeStaticFields(runnable?.schema, runnable?.fields ?? {})) + if (runnable?.schema) { + return schemaToTsType(removeStaticFields(runnable.schema, runnable?.fields ?? {})) + } else { + return '{}' + } } else { return '{}' }