File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,13 @@ export class DocGenService {
96
96
const { event } = eventResult ;
97
97
const currentNode = event . nodeMetaMap . lookupByBaseName ( modelName ) ;
98
98
if ( ! currentNode ?. patch_path ) {
99
- return undefined ;
99
+ return {
100
+ aiEnabled : this . altimateRequest . enabled ( ) ,
101
+ name : modelName ,
102
+ description : "" ,
103
+ generated : false ,
104
+ columns : [ ] ,
105
+ } as DBTDocumentation ;
100
106
}
101
107
102
108
try {
@@ -111,7 +117,13 @@ export class DocGenService {
111
117
// Find matching model definition
112
118
const modelDef = parsedDoc . models ?. find ( ( m ) => m . name === modelName ) ;
113
119
if ( ! modelDef ) {
114
- return undefined ;
120
+ return {
121
+ aiEnabled : this . altimateRequest . enabled ( ) ,
122
+ name : modelName ,
123
+ description : "" ,
124
+ generated : false ,
125
+ columns : [ ] ,
126
+ } as DBTDocumentation ;
115
127
}
116
128
117
129
// Map to DBTDocumentation format
You can’t perform that action at this time.
0 commit comments