From c540e04a532cce35e8fa7c85b487be707550d01f Mon Sep 17 00:00:00 2001 From: coso Date: Tue, 10 Mar 2026 08:09:31 +0800 Subject: [PATCH] fix: add null check for createConfirmationResponse in A2UIRenderer --- .../panels/WorkbenchCreateEntryHome.tsx | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/components/workspace/panels/WorkbenchCreateEntryHome.tsx b/src/components/workspace/panels/WorkbenchCreateEntryHome.tsx index d3e66907d..d7ada363f 100644 --- a/src/components/workspace/panels/WorkbenchCreateEntryHome.tsx +++ b/src/components/workspace/panels/WorkbenchCreateEntryHome.tsx @@ -309,16 +309,18 @@ export function WorkbenchCreateEntryHome({ ) : null} - { - void onSubmitCreateConfirmation?.(formData); - }} - /> + {createConfirmationResponse && ( + { + void onSubmitCreateConfirmation?.(formData); + }} + /> + )}