We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb27168 commit a243609Copy full SHA for a243609
1 file changed
packages/api/src/providers/Capabilities/private/fetchCapabilitiesFromAdapter.ts
@@ -28,7 +28,7 @@ export default function fetchCapabilitiesFromAdapter(
28
}
29
30
// eslint-disable-next-line security/detect-object-injection
31
- const getter = directLine[getterName];
+ const getter = directLine?.[getterName];
32
33
if (typeof getter === 'function') {
34
try {
0 commit comments