filter out Math.* and System.* in viewer

This commit is contained in:
Vyacheslav Matyukhin 2022-07-23 00:18:27 +04:00
parent c7bf40e3e8
commit 3eccd9afd1
No known key found for this signature in database
GPG Key ID: 3D2A774C5489F96C

View File

@ -236,7 +236,7 @@ export const ExpressionViewer: React.FC<Props> = ({
<VariableList path={path} heading="Module"> <VariableList path={path} heading="Module">
{(settings) => {(settings) =>
Object.entries(expression.value) Object.entries(expression.value)
.filter(([key, r]) => key !== "Math") .filter(([key, r]) => !key.match(/^(Math|System)\./))
.map(([key, r]) => ( .map(([key, r]) => (
<ExpressionViewer <ExpressionViewer
key={key} key={key}