Skip to content

Commit 30ef9ff

Browse files
committed
Fix undefined getter
1 parent 2ee8548 commit 30ef9ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function model(data) {
1010
}
1111

1212
function get() {
13-
return models[this.modelName];
13+
return models[this.modelName] || {};
1414
}
1515

1616

0 commit comments

Comments
 (0)