Skip to content

Commit e8b71a0

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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)