diff --git a/lib/view.js b/lib/view.js index 4d840657..be6f02bf 100644 --- a/lib/view.js +++ b/lib/view.js @@ -37,7 +37,9 @@ export function extractViews(entities) { Object.keys(entities).forEach((entityId) => { const entity = entities[entityId]; - if (entity.attributes.view) { + // Entity is a view if it has the 'view' attribute set. + // Consider default_view as view by default. + if (entity.attributes.view || entity.entity_id === DEFAULT_VIEW_ENTITY_ID) { views.push(entity); } });