Remove noop entries.
The noop entries are not actually implemented in organic so it wouldn't make sense for them to be rendered in the UI.
This commit is contained in:
parent
c03bf7458f
commit
f435e73ec1
@ -139,6 +139,9 @@ const OrgPropertiesList = (props: {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
.filter((entry) => {
|
||||||
|
return !(is_object(entry[1]) && entry[1]["noop"] == "Noop");
|
||||||
|
})
|
||||||
.map(([key, value]) => {
|
.map(([key, value]) => {
|
||||||
return (
|
return (
|
||||||
<Fragment key={key}>
|
<Fragment key={key}>
|
||||||
@ -156,4 +159,8 @@ const OrgPropertiesList = (props: {
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
function is_object(val: any): boolean {
|
||||||
|
return (val instanceof Object && !(val instanceof Array));
|
||||||
|
}
|
||||||
|
|
||||||
export default OrgAst;
|
export default OrgAst;
|
||||||
|
Loading…
Reference in New Issue
Block a user