diff --git a/packages/amis-ui/src/components/Transfer.tsx b/packages/amis-ui/src/components/Transfer.tsx
index 8eb3355ff..dd2ff1bc3 100644
--- a/packages/amis-ui/src/components/Transfer.tsx
+++ b/packages/amis-ui/src/components/Transfer.tsx
@@ -628,46 +628,54 @@ export class Transfer<
const placeholder =
resultSearchPlaceholder || __('Transfer.selectFromLeft');
- return resultSelectMode === 'table' ? (
-
- ) : resultSelectMode === 'tree' ? (
-
- ) : (
-
- );
+ switch (resultSelectMode) {
+ case 'table':
+ return (
+
+ );
+ case 'tree':
+ return (
+
+ );
+ default:
+ return (
+
+ );
+ }
}
render() {