We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ae3a998 + 5ec2b86 commit a184f8fCopy full SHA for a184f8f
lib/js/src/manager/SystemCapabilityManager.js
@@ -734,7 +734,7 @@ class SystemCapabilityManager extends _SubManagerBase {
734
}
735
736
// Ford Sync bug returning incorrect template name for "NON-MEDIA" https://github.com/smartdevicelink/sdl_javascript_suite/issues/450
737
- const templatesAvailable = defaultMainWindow.getTemplatesAvailable();
+ const templatesAvailable = defaultMainWindow.getTemplatesAvailable() !== null ? defaultMainWindow.getTemplatesAvailable() : [];
738
for (let index = 0; index < templatesAvailable.length; index++) {
739
if (templatesAvailable[index] === 'NON_MEDIA') {
740
templatesAvailable[index] = 'NON-MEDIA';
0 commit comments