We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 005d824 commit f561bbcCopy full SHA for f561bbc
src/features/cseMachine/CseMachineLayout.tsx
@@ -203,8 +203,7 @@ export class Layout {
203
* objects into the global environment head and heap
204
*/
205
private static removePreludeEnv() {
206
- if (!Layout.globalEnvNode.children) return;
207
- if (Layout.globalEnvNode.children.length === 0) return;
+ if (!Layout.globalEnvNode.children || Layout.globalEnvNode.children.length === 0) return;
208
209
const preludeEnvNode = Layout.globalEnvNode.children[0];
210
const preludeEnv = preludeEnvNode.environment;
0 commit comments