mirror of
https://github.com/nasa/openmct.git
synced 2025-06-22 00:57:11 +00:00
[Views] Add tests for type-view restrictions
Add tests for type-view restrictions added to support stricter coupling of Packet objects to Autoflow Tabular View, WTD-644.
This commit is contained in:
@ -84,7 +84,7 @@ define(
|
||||
// Check if a view and domain object type can be paired;
|
||||
// both can restrict the others they accept.
|
||||
function viewMatchesType(view, type) {
|
||||
var views = type && type.getDefinition().views,
|
||||
var views = type && (type.getDefinition() || {}).views,
|
||||
matches = true;
|
||||
|
||||
// View is restricted to a certain type
|
||||
|
Reference in New Issue
Block a user