Difference between revisions of "Widget:DCTList"

From LINKS Community Center
Jump to: navigation, search
Line 353: Line 353:
 
         */
 
         */
 
         function dctFilter(dct, filterState) {
 
         function dctFilter(dct, filterState) {
 +
            console.log(filterState)
 
             // If filtering property is empty, don't apply the filter (set the check to true).
 
             // If filtering property is empty, don't apply the filter (set the check to true).
 
             // Passing an empty object (as with applyFilters(true)) should result in an unfiltered table.
 
             // Passing an empty object (as with applyFilters(true)) should result in an unfiltered table.
Line 365: Line 366:
 
                 : true;
 
                 : true;
 
             const dmUseCheck = filterState.usedByDmo
 
             const dmUseCheck = filterState.usedByDmo
                 ? filterState.usedByDmo.indexOf(dct.usedByDmo) > 0
+
                 ? filterState.usedByDmo.includes(dct.usedByDmo)
 
                 : true;
 
                 : true;
 
             return sourcesCheck && functionsCheck && businessModelCheck && dmUseCheck;
 
             return sourcesCheck && functionsCheck && businessModelCheck && dmUseCheck;

Revision as of 13:42, 13 September 2022

Development verstion of the DCT List.
Not ready for production!