fix: workflow node edit drawer title shows [object Object] (#6648)

This commit is contained in:
Katherine 2025-04-11 19:54:01 +08:00 committed by GitHub
parent 8c5edfc494
commit 9f8fb0e362
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,7 +121,6 @@ export const InternalActionDrawer: React.FC<ActionDrawerProps> = observer(
},
[footerNodeName],
);
return (
<ActionContextNoRerender>
<zIndexContext.Provider value={zIndex}>
@ -129,7 +128,7 @@ export const InternalActionDrawer: React.FC<ActionDrawerProps> = observer(
<Drawer
zIndex={zIndex}
width={openSizeWidthMap.get(openSize)}
title={t(field.title, { ns: NAMESPACE_UI_SCHEMA })}
title={typeof field.title === 'string' ? t(field.title, { ns: NAMESPACE_UI_SCHEMA }) : field.title}
{...others}
{...drawerProps}
rootStyle={rootStyle}