diff --git a/ember_debug/object-inspector.js b/ember_debug/object-inspector.js index e50f0faaaf..88bcad8efa 100644 --- a/ember_debug/object-inspector.js +++ b/ember_debug/object-inspector.js @@ -1317,7 +1317,7 @@ function calculateCP(object, item, errorsForObject) { if (object instanceof Ember.ArrayProxy && property == parseInt(property)) { return object.objectAt(property); } - return item.isGetter || property.includes('.') + return item.isGetter || property.includes?.('.') ? object[property] : object.get?.(property) || object[property]; // need to use `get` to be able to detect tracked props } catch (error) {