open-consul/ui/packages/consul-ui/app/search/predicates/node.js

6 lines
177 B
JavaScript

export default {
Node: item => item.Node,
Address: item => item.Address,
Meta: item => Object.entries(item.Meta || {}).reduce((prev, entry) => prev.concat(entry), []),
};