File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ export function getModelComposition(
5959 modelProperties . forEach ( modelProperty => {
6060 composition . imports . push ( ...modelProperty . imports ) ;
6161 composition . enums . push ( ...modelProperty . enums ) ;
62+ if ( modelProperty . export === 'enum' ) {
63+ composition . enums . push ( modelProperty ) ;
64+ }
6265 } ) ;
6366 properties . push ( ...modelProperties ) ;
6467 }
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ export function getModelComposition(
5959 modelProperties . forEach ( modelProperty => {
6060 composition . imports . push ( ...modelProperty . imports ) ;
6161 composition . enums . push ( ...modelProperty . enums ) ;
62+ if ( modelProperty . export === 'enum' ) {
63+ composition . enums . push ( modelProperty ) ;
64+ }
6265 } ) ;
6366 properties . push ( ...modelProperties ) ;
6467 }
You can’t perform that action at this time.
0 commit comments