@@ -16,7 +16,7 @@ const cellInfo = (workflow) => [
1616const rowInfo = ( headers , response ) => {
1717 const headerKeys = headers . map ( ( item ) => item . key ) ;
1818 const rows = response . resources . map ( ( workflow ) => {
19- const isValid = ! ! workflow . payload ;
19+ const isValid = workflow . payload_valid ;
2020 return {
2121 id : workflow . id . toString ( ) ,
2222 name : workflow . name ,
@@ -26,17 +26,18 @@ const rowInfo = (headers, response) => {
2626 } ;
2727 } ) ;
2828
29- // Sort: valid workflows first (alphabetically), then invalid workflows (alphabetically)
30- const sortedRows = rows . sort ( ( a , b ) => {
31- // If both have same validity status, sort alphabetically by name
32- if ( a . disabled === b . disabled ) {
33- return a . name . localeCompare ( b . name ) ;
34- }
35- // Valid workflows come first
36- return a . disabled ? 1 : - 1 ;
37- } ) ;
29+ // // Sort: valid workflows first (alphabetically), then invalid workflows (alphabetically)
30+ // const sortedRows = rows.sort((a, b) => {
31+ // // If both have same validity status, sort alphabetically by name
32+ // if (a.disabled === b.disabled) {
33+ // return a.name.localeCompare(b.name);
34+ // }
35+ // // Valid workflows come first
36+ // return a.disabled ? 1 : -1;
37+ // });
3838
39- const miqRows = rowData ( headerKeys , sortedRows , false ) ;
39+ // const miqRows = rowData(headerKeys, sortedRows, false);
40+ const miqRows = rowData ( headerKeys , rows , false ) ;
4041 return miqRows . rowItems ;
4142} ;
4243
0 commit comments