fix: 🐛 scopeModel should check for ID before calling peekRecord (#298)
This commit is contained in:
1 parent
3d9836a55b
commit
998df39560
1 file changed
+1
-1
@@ -57,7 +57,7 @@ export default class BaseModel extends Model {
|
||||
|
||||
get scopeModel() {
|
||||
const id = this.scopeID;
|
||||
return this.store.peekRecord('scope', id);
|
||||
return id ? this.store.peekRecord('scope', id) : null;
|
||||
}
|
||||
|
||||
// Ember seems to have a bug with its internals and can't correctly set
|
||||
|
||||
Reference in new issue
Block a user