Skip to content

Commit 89bb185

Browse files
committed
Always use sortedAttributes in Dart type generation
1 parent 888a7c6 commit 89bb185

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/cli/lib/type-generation/languages/dart.js.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class Dart extends LanguageMeta {
9090
if (a.required === b.required) return 0;
9191
return a.required ? -1 : 1;
9292
}); -%>
93-
<% const __attrs = strict ? sortedAttributes : collection.attributes; -%>
93+
<% const __attrs = sortedAttributes; -%>
9494
<% for (const attribute of __attrs) { -%>
9595
<% if (attribute.type === '${AttributeType.RELATIONSHIP}') { -%>
9696
<% const related = collections.find(c => c.$id === attribute.relatedCollection); -%>

0 commit comments

Comments
 (0)