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:
Tom Alexander 2024-01-27 17:07:17 -05:00
parent c03bf7458f
commit f435e73ec1
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
1 changed files with 7 additions and 0 deletions

View File

@ -139,6 +139,9 @@ const OrgPropertiesList = (props: {
return 0;
}
})
.filter((entry) => {
return !(is_object(entry[1]) && entry[1]["noop"] == "Noop");
})
.map(([key, value]) => {
return (
<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;