We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4cd0c4 commit e9de1ccCopy full SHA for e9de1cc
packages/schema/src/utils/ast-utils.ts
@@ -59,10 +59,12 @@ export function mergeBaseModel(model: Model) {
59
const dataModel = decl as DataModel;
60
61
dataModel.fields = dataModel.superTypes
62
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
63
.flatMap((superType) => updateContainer(superType.ref!.fields, dataModel))
64
.concat(dataModel.fields);
65
66
dataModel.attributes = dataModel.superTypes
67
68
.flatMap((superType) => updateContainer(superType.ref!.attributes, dataModel))
69
.concat(dataModel.attributes);
70
});
0 commit comments