fix(instances): support all fw rules

This commit is contained in:
Sérgio Ramos 2018-03-28 16:32:09 +01:00
parent cac551beaf
commit 154b4cfeb6
2 changed files with 7 additions and 1 deletions

View File

@ -47,6 +47,12 @@ const parsePartial = (p, index, style) => {
</Margin>
);
}
return (
<Margin key={index} top={0.5} bottom={0.5}>
<P style={style}>{p[1]}</P>
</Margin>
);
};
const Rule = ({ enabled, rule_obj }) => {

View File

@ -148,7 +148,7 @@ export default compose(
return {
enabled,
defaultRules: rules.filter(({ rule_obj = {} }) => rule_obj.isWildcard),
defaultRules: rules,
tagRules: rules.filter(({ rule_obj = {} }) => rule_obj.tags.length),
instance: machine,
loading,