Skip to content

Commit 64e0955

Browse files
authored
fix: inferArrayItemType (#41)
fix inferArrayItemType
1 parent b772dc1 commit 64e0955

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/actors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,8 @@ export function truncateActorReadme(readme: string, limit = ACTOR_README_MAX_LEN
108108
*/
109109
export function inferArrayItemType(property: SchemaProperties): string | null {
110110
return property.items?.type
111-
|| (property.prefill && typeof property.prefill)
112-
|| (property.default && typeof property.default)
111+
|| (property.prefill && typeof property.prefill[0])
112+
|| (property.default && typeof property.default[0])
113113
|| (property.editor && getEditorItemType(property.editor))
114114
|| null;
115115

0 commit comments

Comments
 (0)