fix: 🐛 scopeModel should check for ID before calling peekRecord (#298)

This commit is contained in:
Randall Morey authored and GitHub committed 2023-05-30 10:37:35 -07:00
1 parent 3d9836a55b
commit 998df39560
1 file changed
+1 -1
+1 -1
View File
@@ -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