Skip to content

Commit c786844

Browse files
committed
fix(model): relations are not being applied if any is null
1 parent f470806 commit c786844

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ export default class Model extends StaticModel {
259259
const _relation = getProp(model, relation)
260260

261261
if (!_relation) {
262-
return;
262+
continue;
263263
}
264264

265265
if (Array.isArray(_relation.data) || Array.isArray(_relation)) {

0 commit comments

Comments
 (0)