Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

Commit caa61bc

Browse files
committed
Merge branch 'fix-multiple-controls' into 'develop'
Allow multiple search forms to be present See merge request !16
2 parents b77fc15 + f3b241b commit caa61bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/extractors/ControlsExtractor.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ ControlsExtractor.prototype._extract = function (metadata, tripleStream, callbac
6767
// TODO: Make parser independent of a specifically structured control set
6868
var searchForms = controlData.search;
6969
if (searchForms) {
70-
assert(Object.keys(searchForms).length === 1, 'Expected 1 hydra:search');
70+
// We take the first matching search form for now,
71+
// until we find a better method for distinguishing between different forms
7172
var searchForm = searchForms[Object.keys(searchForms)[0]][0],
7273
searchTemplates = (controlData.template || {})[searchForm] || [];
7374

0 commit comments

Comments
 (0)