We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0e5492f + b93342a commit 46efa84Copy full SHA for 46efa84
src/modules/SqlizeQuery/PluginSqlizeQuery.ts
@@ -184,7 +184,7 @@ function filterIncludeHandledOnly({
184
185
function injectRequireInclude(include: Includeable[]) {
186
function test(dataInclude: Includeable[]) {
187
- for (let i = 0; i < dataInclude.length; i += 1) {
+ for (let i = 0; i < (dataInclude?.length || 0); i += 1) {
188
const optionInclude = dataInclude[i] as IncludeOptions
189
let data
190
if (optionInclude.include) {
0 commit comments