Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/blocks/utils/variable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ export function varNameForType(type: string): string {
}
if (type.includes('[')) {
// The type is an array.
// TODO(lizlooney): What's a good name for an array variable?
return '';
return 'myArray';
}
// If the type has a dot, it is an object and we should provide a variable
// block for this type.
Expand Down