|
|
@ -298,12 +298,16 @@ export const defaultState = {
|
|
|
|
label: 'Network',
|
|
|
|
label: 'Network',
|
|
|
|
type: filterBuilderTypes.STRING,
|
|
|
|
type: filterBuilderTypes.STRING,
|
|
|
|
optionsSelector: function(items) {
|
|
|
|
optionsSelector: function(items) {
|
|
|
|
const tagList = items.map((series) => {
|
|
|
|
const tagList = items.reduce((acc, series) => {
|
|
|
|
return {
|
|
|
|
if (series.network) {
|
|
|
|
|
|
|
|
acc.push({
|
|
|
|
id: series.network,
|
|
|
|
id: series.network,
|
|
|
|
name: series.network
|
|
|
|
name: series.network
|
|
|
|
};
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return acc;
|
|
|
|
|
|
|
|
}, []);
|
|
|
|
|
|
|
|
|
|
|
|
return tagList.sort(sortByName);
|
|
|
|
return tagList.sort(sortByName);
|
|
|
|
}
|
|
|
|
}
|
|
|
|